Commit 20647ab
fix(litellm): only signal codex-account rotation on codex 429s
The rate-limit signaler wrote /chatgpt-auth/rotate-now on ANY 429,
including Nemotron's (the codex fallback). When codex was down and
everything fell back to Nemotron, Nemotron's load 429s thrashed the
rotator's active-account pointer and churned refresh_tokens — pointless,
since rotating the codex account pool can't relieve a Nemotron rate
limit. Gate the signal on codex/chatgpt models so only a real codex
429 triggers rotation.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7126c35 commit 20647ab
1 file changed
Lines changed: 15 additions & 4 deletions
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
110 | 119 | | |
111 | 120 | | |
112 | 121 | | |
| |||
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
135 | | - | |
136 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
145 | | - | |
146 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
147 | 158 | | |
148 | 159 | | |
149 | 160 | | |
| |||
0 commit comments