Commit 1d9924b
committed
fix: reset empty response retry counter after successful recovery
The retry counter was per-invocation, not per-failure-burst. If a model
returned empty responses at different points during the same invocation,
earlier (recovered) empties consumed the budget. A later empty response
would exhaust the counter and halt silently.
Fix: reset empty_response_count to 0 after any successful (non-empty)
response. Also add a warning log when retries are exhausted so the halt
is not silent.1 parent 101ce8c commit 1d9924b
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
811 | 816 | | |
812 | 817 | | |
813 | 818 | | |
| |||
841 | 846 | | |
842 | 847 | | |
843 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
844 | 859 | | |
845 | 860 | | |
846 | 861 | | |
| |||
0 commit comments