You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a06a416
Browse filesBrowse the repository at this point in the historyBrowse files
fix(proxy): extend retryOn429 to all key-auth surfaces (audit round-3 xhigh)
- core: the Responses passthrough wire (openai-responses key-auth gateways, e.g.
the built-in DeepSeek preset) now replays 429 on the same key pre-relay, before
the forward-pool logic; Anthropic terminal-guard continuations replay before
key/account failover
- images/loop + web-search/loop: same-target replay before on429 key rotation via
a new retryOn429Policy dep (abort-aware, heartbeat seams preserved)
- key-failover: the fixed fallback is now capped at maxIntervalMs (a single wait
never exceeds the cap); authMode local runtimes are gated out alongside
oauth/forward, so the knob matches the documented API-key scope exactly
- tests: key-auth openai-responses passthrough e2e, terminal-guard continuation
replay, image/web-search same-key replay (rotation stays zero), fallback cap,
local-mode gating
- docs: coverage and cap wording in devlog 010, structure/04, and all five
configuration locale rows
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/ko/reference/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ timing side channel을 막기 위해 상수 시간(`timingSafeEqual`)으로 비
204
204
|`parallelToolCalls?`|`boolean`| 병렬 툴 호출을 켜거나 끕니다. OpenAI Chat은 기본 on이며, chat 외 어댑터는 명시적인 `true`에서만 지원을 알립니다. |
205
205
|`autoToolChoiceOnlyModels?`|`string[]`|`tool_choice`에서 `auto` 또는 `none`만 받는 모델. 강제/지정 선택은 downgrade합니다. |
206
206
|`preserveReasoningContentModels?`|`string[]`| 이전 assistant `reasoning_content`를 chat history에 유지해야 하는 모델. |
207
-
|`retryOn429?`|`{ enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean }`|key-auth 프로바이더 전용. 동일 대상 429 재시도: 대기(업스트림 `Retry-After` 또는 고정 간격) 후 키 장애 조치 전에 동일 키로 동일 요청을 재전송합니다. Codex 자체는 429를 재시도하지 않으므로 단일 키 프로바이더의 유일한 방어선입니다. 기본값: `enabled: true`, `attempts: 3`, `intervalMs: 5000`, `maxIntervalMs: 60000`(단일 대기는 600000으로 상한), `respectRetryAfter: true`. |
207
+
|`retryOn429?`|`{ enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean }`|API-key 프로바이더 전용(`authMode: "key"`). 동일 대상 429 재시도: `retryOn429`가 없으면 기능이 꺼져 있고, 객체가 있으면 `enabled: false`가 아닌 한 활성화됩니다. 429 시 대기(업스트림 `Retry-After` 또는 고정 간격) 후 키 장애 조치 전에 동일 키로 동일 요청을 재전송합니다 — 일반 텍스트 턴 복구 루프, Responses passthrough, 이미지/비디오 브리지, web-search 사이드카, 터미널 연속 요청을 모두 포함합니다. Codex 자체는 429를 재시도하지 않으므로 단일 키 프로바이더의 유일한 방어선입니다. 기본값: `enabled: true`, `attempts: 3`, `intervalMs: 5000`, `maxIntervalMs: 60000`(단일 대기는`maxIntervalMs`로 상한, 그 자체는 600000으로 상한), `respectRetryAfter: true`. |
208
208
|`thinkingToggleModels?`|`string[]`| effort 단계 대신 vendor `thinking.enabled` toggle을 쓰는 chat 모델. |
209
209
|`thinkingBudgetModels?`|`string[]`| 정수 `thinking_budget`을 쓰는 chat 모델. effort를 budget 비율로 매핑합니다. |
210
210
|`noVisionModels?`|`string[]`| 텍스트 전용 모델. [비전 사이드카](/ko/guides/sidecars/)가 이미지를 설명합니다. Ollama의 `:size` 태그도 일치시킵니다. |
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/reference/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -350,7 +350,7 @@ or bind the forward explicitly to loopback (`ssh -L 127.0.0.1:20100:localhost:10
350
350
|`responsesItemIdRepair?`|`{ message?: string[]; reasoning?: string[]; repairMissingTerminalIds?: boolean }`| Provider-local, disabled-by-default passthrough SSE repair for exact `message` / `reasoning` placeholder ids and missing terminal ids. Downstream only; function-call ids and `call_id` are never rewritten. |
351
351
|`autoToolChoiceOnlyModels?`|`string[]`| Models whose `tool_choice` accepts only `auto` or `none`; forced/named choices are downgraded. |
352
352
|`preserveReasoningContentModels?`|`string[]`| Models that require prior assistant `reasoning_content` to remain in chat history. |
353
-
|`retryOn429?`|`{ enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean }`|Key-auth providers only. Opt-in same-target 429 retry: wait (upstream `Retry-After` or the fixed interval) and replay the identical request on the same key before any key failover. Codex itself never retries 429, so this is the only defense for single-key providers. Defaults: `enabled: true`, `attempts: 3`, `intervalMs: 5000`, `maxIntervalMs: 60000` (a single wait is capped at 600000), `respectRetryAfter: true`. |
353
+
|`retryOn429?`|`{ enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean }`|API-key providers only (`authMode: "key"`). Opt-in same-target 429 retry: when `retryOn429` is absent the feature is off; object presence enables it unless `enabled: false`. On 429 the proxy waits (upstream `Retry-After` or the fixed interval) and replays the identical request on the same key before any key failover — across the main text-turn recovery loop, the Responses passthrough wire, the image/video bridge, the web-search sidecar, and terminal continuations. Codex itself never retries 429, so this is the only defense for single-key providers. Defaults: `enabled: true`, `attempts: 3`, `intervalMs: 5000`, `maxIntervalMs: 60000` (any single wait is capped at `maxIntervalMs`, itself capped at 600000), `respectRetryAfter: true`. |
354
354
|`thinkingToggleModels?`|`string[]`| Chat models using a vendor `thinking.enabled` toggle instead of an effort ladder. |
355
355
|`thinkingBudgetModels?`|`string[]`| Chat models using an integer `thinking_budget`; effort is mapped to a budget fraction. |
356
356
|`noVisionModels?`|`string[]`| Text-only models — the [vision sidecar](/guides/sidecars/) describes images for them. Matching tolerates an Ollama `:size` tag. |
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/ru/reference/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,7 @@ Responses и Chat Completions принимают только выделенны
228
228
|`parallelToolCalls?`|`boolean`| Включает/отключает параллельные вызовы инструментов. В OpenAI Chat включено по умолчанию; не-chat-адаптеры объявляют поддержку только при явном `true`. |
229
229
|`autoToolChoiceOnlyModels?`|`string[]`| Модели, у которых `tool_choice` принимает только `auto` или `none`; принудительные/именованные выборы понижаются. |
230
230
|`preserveReasoningContentModels?`|`string[]`| Модели, требующие сохранять предыдущий assistant `reasoning_content` в истории чата. |
231
-
|`retryOn429?`|`{ enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean }`| Только для провайдеров с key-auth. Опциональный повтор при 429 на том же таргете: ожидание (`Retry-After` апстрима или фиксированный интервал) и повтор идентичного запроса на том же ключе до любого фейловера ключей. Codex сам никогда не повторяет 429, поэтому это единственная защита для провайдеров с одним ключом. По умолчанию: `enabled: true`, `attempts: 3`, `intervalMs: 5000`, `maxIntervalMs: 60000` (одно ожидание ограничено 600000), `respectRetryAfter: true`. |
231
+
| `retryOn429?` | `{ enabled?: boolean; attempts?: number; intervalMs?: number; maxIntervalMs?: number; respectRetryAfter?: boolean }` | Только для провайдеров с API-ключом (`authMode: "key"`). Опциональный повтор при 429 на том же таргете: если `retryOn429` отсутствует, функция выключена; наличие объекта включает её, если только `enabled: false`. При 429: ожидание (`Retry-After` апстрима или фиксированный интервал) и повтор идентичного запроса на том же ключе до любого фейловера ключей — покрывает основной цикл восстановления текстовых ходов, passthrough-канал Responses, мост изображений/видео, sidecar web-search и терминальные продолжения. Codex сам никогда не повторяет 429, поэтому это единственная защита для провайдеров с одним ключом. По умолчанию: `enabled: true`, `attempts: 3`, `intervalMs: 5000`, `maxIntervalMs: 60000` (любое ожидание ограничено `maxIntervalMs`, который сам ограничен 600000), `respectRetryAfter: true`. |
|`thinkingBudgetModels?`|`string[]`| Chat-модели, использующие целочисленный `thinking_budget`; уровень отображается в долю бюджета. |
234
234
|`noVisionModels?`|`string[]`| Модели только для текста — [vision-сайдкар](/ru/guides/sidecars/) описывает для них изображения. Сопоставление допускает тег Ollama `:size`. |
0 commit comments