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
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_async_remote_image_fetch
mateo-berri59e000de8e01
diff --cc litellm/llms/black_forest_labs/image_edit/transformation.pyindex c6de9f9ba65,62b631a7671..ddab4f54d57--- a/litellm/llms/black_forest_labs/image_edit/transformation.py+++ b/litellm/llms/black_forest_labs/image_edit/transformation.py@@@ -101,11 -84,35 +101,11 @@@ class BlackForestLabsImageEditConfig(BaBFL-specific params are passed through directly."""- optional_params: Final[dict[str, Any]] = {}+ optional_params: Final[dict[str, object]] = {}-- # Pass through BFL-specific params- bfl_params: Final = [- "seed",- "output_format",- "safety_tolerance",- "prompt_upsampling",- # Kontext-specific- "aspect_ratio",- # Fill/Inpaint-specific- "steps",- "guidance",- "grow_mask",- # Expand-specific- "top",- "bottom",- "left",- "right",- ]-- # Convert TypedDict to regular dict for access- params_dict: Final = dict(image_edit_optional_params)-- for param in bfl_params:- if param in params_dict:- value = params_dict[param]- if value is not None:- optional_params[param] = value+ params: Final[Mapping[str, object]] = image_edit_optional_params+ for param in _BFL_REQUEST_PARAMS:+ if (value := params.get(param)) is not None:+ optional_params[param] = value# Set default output formatif "output_format" not in optional_params: