mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-27 01:22:18 +00:00
fix: forward non_default_params in image_edit fallback handler
Added support for forwarding provider-specific parameters in image edit requests.
This commit is contained in:
parent
7e5699c7ab
commit
a04cbfc6a0
1 changed files with 3 additions and 0 deletions
|
|
@ -963,6 +963,9 @@ def image_edit(
|
|||
client=kwargs.get("client"),
|
||||
aimage_edit=_is_async,
|
||||
)
|
||||
# Forward provider-specific params (e.g., image_config for OpenRouter) so they
|
||||
# reach the provider the same way bedrock/stability/black_forest_labs paths do.
|
||||
image_edit_request_params.update(non_default_params)
|
||||
# Call the handler with _is_async flag instead of directly calling the async handler
|
||||
return base_llm_http_handler.image_edit_handler(
|
||||
model=model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue