Commit 8abed69
fix: address all Copilot/Codex feedback for PR #1929
Critical fixes based on review feedback:
- Fix dict format mismatch: Read "name" directly instead of "function.name"
(Responses Converter returns {"type": "function", "name": "..."}, not nested format)
- Add explicit handling for ToolChoiceFunction instances (avoid silent fallback to "auto")
- Add defensive checks for tool_name (exists, is string, non-empty)
- Replace type: ignore with explicit cast for better type safety
- Remove unused ChatCompletionNamedToolChoiceParam import
This addresses the critical P1 issue identified by chatgpt-codex-connector and all Copilot nitpicks.
Generated with Lucas Wang<[email protected]>
Co-Authored-By: Claude <[email protected]>1 parent 2f85765 commit 8abed69
1 file changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
373 | | - | |
| 372 | + | |
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
377 | 379 | | |
378 | | - | |
379 | | - | |
380 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
381 | 383 | | |
382 | 384 | | |
383 | | - | |
384 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | | - | |
387 | | - | |
388 | | - | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
393 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| |||
0 commit comments