Merge pull request #13542 from tuzkiyoung/main

fix: support gpt-image-1 with correct parameter
This commit is contained in:
Tim Jaeryang Baek 2025-05-06 09:56:48 +04:00 committed by GitHub
commit 7b5247810c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -501,9 +501,9 @@ async def image_generations(
else request.app.state.config.IMAGE_SIZE
),
**(
{"response_format": "b64_json"}
{}
if "gpt-image-1" in request.app.state.config.IMAGE_GENERATION_MODEL
else {}
else {"response_format": "b64_json"}
),
}