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:
Vitaliy 2026-06-19 01:11:59 -04:00 • committed by GitHub
parent 7e5699c7ab
commit a04cbfc6a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,