Commit 1ec2b74
authored
fix(responses): include text.format when verbosity set for plain-text responses
When model_settings.verbosity was set and no output schema was provided,
the code previously built response_format = {"verbosity": ...} which
is an invalid `text` payload for the Responses API. The Responses API
expects a `text` object to include a `format` field (for plain text use
"format": "text").
This patch ensures a valid payload is sent by using:
{"format": "text", "verbosity": <value>}
Impact:
- Prevents 400/BadRequest errors when callers use verbosity with plain text
responses (no JSON schema).
- Backwards compatible for callers that already use output_schema.1 parent f91b38f commit 1ec2b74
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
504 | | - | |
| 506 | + | |
505 | 507 | | |
506 | 508 | | |
507 | 509 | | |
| |||
0 commit comments