mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-30 01:10:17 -05:00
refac: gpt-image-1 support
This commit is contained in:
@@ -500,7 +500,11 @@ async def image_generations(
|
|||||||
if form_data.size
|
if form_data.size
|
||||||
else request.app.state.config.IMAGE_SIZE
|
else request.app.state.config.IMAGE_SIZE
|
||||||
),
|
),
|
||||||
"response_format": "b64_json",
|
**(
|
||||||
|
{"response_format": "b64_json"}
|
||||||
|
if "gpt-image-1" in request.app.state.config.IMAGE_GENERATION_MODEL
|
||||||
|
else {}
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use asyncio.to_thread for the requests.post call
|
# Use asyncio.to_thread for the requests.post call
|
||||||
|
|||||||
Reference in New Issue
Block a user