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(images): build the merged edit form in one comprehension
Devin AIe0dd1350f46c
diff --git a/litellm/proxy/image_endpoints/endpoints.py b/litellm/proxy/image_endpoints/endpoints.pyindex 7fcbc75dd65..2989ffb9caa 100644--- a/litellm/proxy/image_endpoints/endpoints.py+++ b/litellm/proxy/image_endpoints/endpoints.py@@ -297,11 +297,9 @@ async def image_edit_api(#########################################################data: Final = {key: value- for key, value in dict(- coerce_numeric_form_fields(- parsed_body=await _read_request_body(request=request),- numeric_fields=IMAGE_EDIT_NUMERIC_FORM_FIELDS,- )+ for key, value in coerce_numeric_form_fields(+ parsed_body=await _read_request_body(request=request),+ numeric_fields=IMAGE_EDIT_NUMERIC_FORM_FIELDS,).items()if key not in BRACKETED_FILE_FIELDS}