fix: put image_edit_request_params spread first to avoid overwriting model_info/metadata

This commit is contained in:
Chesars 2026-02-27 16:26:11 -03:00
parent 727adb0117
commit a08e5195e5

View file

@ -873,10 +873,10 @@ def image_edit( # noqa: PLR0915
user=user,
optional_params=dict(image_edit_request_params),
litellm_params={
**image_edit_request_params,
"litellm_call_id": litellm_call_id,
"model_info": model_info,
"metadata": metadata,
**image_edit_request_params,
},
custom_llm_provider=custom_llm_provider,
)