Commit c9bd2c6
authored
OpenAI rejects response_format on /v1/images/edits when the model is a
gpt-image-* model with HTTP 400 'Unknown parameter: response_format'.
The generations branch already avoids setting response_format for
gpt-image-*, but the edit (image-to-image) branch set it unconditionally
whenever a reference image was supplied.
Set response_format only for non-gpt-image-* models in the edit branch
to match the generations behaviour.
1 parent f44ca62 commit c9bd2c6
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1246 | 1246 | | |
1247 | 1247 | | |
1248 | 1248 | | |
1249 | | - | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1250 | 1256 | | |
1251 | 1257 | | |
1252 | 1258 | | |
| |||
0 commit comments