Commit 8b48991
committed
fix: address human review feedback on PR #166
- Remove redundant isinstance checks in _resolve_model_config; Pydantic
ModelConfigDocument validates dict[str, dict[str, Any]] at parse time,
making runtime type checks dead code. Update test to verify Pydantic
validation instead of testing the removed checks.
- Remove shadowing local imports of os and typer in cli.py that duplicate
top-level imports.
- Don't inject default temperature (0.0) when api_type is 'responses';
the responses API rejects unsupported parameters. MODEL_TEMP env var
and YAML model_settings still override for both API types. Preserves
backward-compatible 0.0 default for chat_completions.
- Narrow task-level retry to transient network exceptions only
(APIConnectionError, APITimeoutError, ConnectionError, TimeoutError).
Non-retriable errors (ValueError, RuntimeError, etc.) now break
immediately instead of burning through retry attempts. Prevents blind
retries of deterministic failures and side-effectful repeat_prompt
re-execution on non-transient errors.1 parent a147e9e commit 8b48991
3 files changed
Lines changed: 23 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | | - | |
82 | | - | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 84 | | |
92 | 85 | | |
93 | 86 | | |
| |||
299 | 292 | | |
300 | 293 | | |
301 | 294 | | |
302 | | - | |
303 | 295 | | |
304 | 296 | | |
305 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
| |||
675 | 679 | | |
676 | 680 | | |
677 | 681 | | |
678 | | - | |
| 682 | + | |
679 | 683 | | |
680 | 684 | | |
681 | 685 | | |
| |||
688 | 692 | | |
689 | 693 | | |
690 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
691 | 699 | | |
692 | 700 | | |
693 | 701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
0 commit comments