The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(bedrock): remove response_data.json debug write in image edit transform (#21494)
Emerson Gomesdff419125310
diff --git a/litellm/llms/bedrock/image_edit/stability_transformation.py b/litellm/llms/bedrock/image_edit/stability_transformation.pyindex fc14b571a8c..db4e3a0a7a7 100644--- a/litellm/llms/bedrock/image_edit/stability_transformation.py+++ b/litellm/llms/bedrock/image_edit/stability_transformation.py@@ -22,7 +22,6 @@ API Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parame"""import base64-import jsonfrom typing import TYPE_CHECKING, Any, Dict, Optional, Tupleimport httpx@@ -285,8 +284,6 @@ class BedrockStabilityImageEditConfig(BaseImageEditConfig):"""try:response_data = raw_response.json()- with open("response_data.json", "w") as f:- json.dump(response_data, f)except Exception as e:raise self.get_error_class(error_message=f"Error parsing Bedrock Stability response: {e}",@@ -396,4 +393,3 @@ class BedrockStabilityImageEditConfig(BaseImageEditConfig):headers["Content-Type"] = "application/json"return headers-