Commit d61be03
authored
fix(responses): use proper text.format object for plain-text verbosity
Mypy reported a typing error because the `text.format` TypedDict expects an object
(e.g. {"type": "text"}) not a plain string "text". Previously we set
response_format = {"format": "text", "verbosity": ...} which fails type checks.
This change uses the correct format object:
{"format": {"type": "text"}, "verbosity": <value>}
This resolves the mypy failure and keeps the `text` payload valid for the Responses API.1 parent 1ec2b74 commit d61be03
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
305 | 308 | | |
306 | 309 | | |
307 | 310 | | |
| |||
0 commit comments