mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix(azure_ai): use correct 'input_image' key for FLUX.2-pro image editing (#26698)
The Black Forest Labs API for FLUX.2-pro image editing expects the
base64-encoded image under the key "input_image", not "image".
Using the wrong key ("image") causes the API to silently ignore the
field, so no image is passed to the model — making the bug very hard
to detect since no error is returned.
Fixes #26698
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3e1479c052
commit
ca6a340334
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ class AzureFoundryFlux2ImageEditConfig(OpenAIImageEditConfig):
|
|||
# Build request body with required params
|
||||
request_body: Dict[str, Any] = {
|
||||
"prompt": prompt,
|
||||
"image": image_b64,
|
||||
"input_image": image_b64,
|
||||
"model": model,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue