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
Update litellm/llms/black_forest_labs/image_edit/transformation.py
Cesar Garcia8eb7ca3726d0
diff --git a/litellm/llms/black_forest_labs/image_edit/transformation.py b/litellm/llms/black_forest_labs/image_edit/transformation.pyindex 95e3c946cc8..5732b8786db 100644--- a/litellm/llms/black_forest_labs/image_edit/transformation.py+++ b/litellm/llms/black_forest_labs/image_edit/transformation.py@@ -204,7 +204,10 @@ class BlackForestLabsImageEditConfig(BaseImageEditConfig):image.seek(pos)return dataelse:- return image+ raise ValueError(+ f"Unsupported image type: {type(image)}. "+ "Expected bytes, str (URL or file path), or file-like object."+ )def transform_image_edit_request(self,