From 066d8045f1efd62bff98bc3a16678ef0bef84873 Mon Sep 17 00:00:00 2001 From: Dawei Gu Date: Tue, 26 May 2026 16:20:31 -0700 Subject: [PATCH] codecov --- litellm/llms/bedrock/batches/handler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/litellm/llms/bedrock/batches/handler.py b/litellm/llms/bedrock/batches/handler.py index 8c100a85a71..dc94edad9df 100644 --- a/litellm/llms/bedrock/batches/handler.py +++ b/litellm/llms/bedrock/batches/handler.py @@ -1,3 +1,4 @@ +import json from datetime import datetime from typing import Any, Optional, cast @@ -271,12 +272,10 @@ class BedrockBatchesHandler: # (submitTime, endTime, …) and in ResponseMetadata. The # logging post_call path calls json.dumps() on dict responses, # which chokes on datetime — so we serialize with default=str. - import json as _json - logging_obj.post_call( input=batch_id, api_key="", - original_response=_json.dumps(response, default=str), + original_response=json.dumps(response, default=str), additional_args={"complete_input_dict": {"jobIdentifier": batch_id}}, )