mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-15 00:45:56 +08:00
fix: support gpt-image-1 with correct parameter
This commit is contained in:
parent
23b9354cf6
commit
9cc00afc6b
@ -501,9 +501,9 @@ async def image_generations(
|
|||||||
else request.app.state.config.IMAGE_SIZE
|
else request.app.state.config.IMAGE_SIZE
|
||||||
),
|
),
|
||||||
**(
|
**(
|
||||||
{"response_format": "b64_json"}
|
{}
|
||||||
if "gpt-image-1" in request.app.state.config.IMAGE_GENERATION_MODEL
|
if "gpt-image-1" in request.app.state.config.IMAGE_GENERATION_MODEL
|
||||||
else {}
|
else {"response_format": "b64_json"}
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user