SamGu-NRX
b97f71da0c
fix(codex): send the ChatGPT routing hint native Codex sends
...
- Send X-Codex-Routing-Hint ("model=<slug>" plus ";tier=<service_tier>")
on ChatGPT-backend requests over HTTP, compact and websocket handshakes,
matching openai/codex rust-v0.155.0 build_routing_hint_header. Translated
requests previously carried service_tier=priority only in the body.
- Derive the hint from the final upstream body, replacing a hint a native
client forwarded, so it names the model and tier actually sent.
- Keep operator precedence: an auth header rule that resolves to a value
wins, a dynamic rule that resolves to nothing falls back to the derived
hint, and models.json override_header still applies last.
- Leave API-key requests unchanged, and keep websocket reuse as native Codex
does: an open connection keeps its handshake hint when the tier changes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-09-23 19:56:53 -05:00
..
2026-09-23 19:31:39 +08:00
2026-09-06 23:41:12 +08:00
2026-09-18 21:22:43 +08:00
2026-09-01 08:37:02 +08:00
2026-09-17 03:51:48 +08:00
2026-09-06 21:51:47 +08:00
2026-08-25 11:51:17 +08:00
2026-09-02 22:01:55 +08:00
2026-09-02 22:01:55 +08:00
2026-09-18 21:22:43 +08:00
2026-08-25 15:13:04 +08:00
2026-09-01 18:00:04 +08:00
2026-09-07 19:15:39 +08:00
2026-08-25 11:51:17 +08:00
2026-09-06 23:41:12 +08:00
2026-08-25 15:13:04 +08:00
2026-09-18 21:22:43 +08:00
2026-09-17 13:10:47 +08:00
2026-09-08 11:29:05 +08:00
2026-09-22 03:54:34 +08:00
2026-09-03 13:10:30 +08:00
2026-09-08 18:32:26 +08:00
2026-08-31 19:27:20 +08:00
2026-09-04 18:53:21 +08:00
2026-09-10 20:01:39 +08:00
2026-09-10 20:01:39 +08:00
2026-08-29 12:50:46 +08:00
2026-09-19 03:07:33 +08:00
2026-09-11 16:59:57 +08:00
2026-09-23 08:11:33 +08:00
2026-08-29 14:47:51 +08:00
2026-09-23 05:07:49 +08:00
2026-09-23 05:07:49 +08:00
2026-09-04 15:23:31 +08:00
2026-09-22 05:16:25 +08:00
2026-09-18 09:15:48 +08:00
2026-09-23 05:07:49 +08:00
2026-08-29 12:50:46 +08:00
2026-09-19 02:13:11 +08:00
2026-09-23 08:11:33 +08:00
2026-09-16 20:00:27 +08:00
2026-09-22 05:16:25 +08:00
2026-09-23 05:07:49 +08:00
2026-09-23 08:11:33 +08:00
2026-09-18 01:55:36 +08:00
2026-09-18 01:55:36 +08:00
2026-09-21 10:17:25 +08:00
2026-09-08 10:34:05 +08:00
2026-09-21 04:13:44 +08:00
2026-09-14 09:20:03 +08:00
2026-09-22 22:39:20 +08:00
2026-09-23 19:56:53 -05:00
2026-09-23 19:56:53 -05:00
2026-09-09 11:57:58 +08:00
2026-09-23 19:56:53 -05:00
2026-09-18 23:02:54 +08:00
2026-09-11 00:30:24 +08:00
2026-09-09 18:04:01 +08:00
2026-09-10 12:35:07 +08:00
2026-09-23 19:56:53 -05:00
2026-09-18 12:31:52 +08:00
2026-09-13 15:05:03 +08:00
2026-09-07 20:09:29 +08:00
2026-09-09 11:57:58 +08:00
2026-09-13 15:05:03 +08:00
2026-09-10 10:40:53 +08:00
2026-09-18 12:31:52 +08:00
2026-09-22 22:39:20 +08:00
2026-09-18 12:31:52 +08:00
2026-09-22 00:18:05 +08:00
2026-09-22 03:54:34 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-20 00:02:10 +08:00
2026-09-09 11:57:58 +08:00
2026-09-23 19:56:53 -05:00
2026-09-22 03:54:34 +08:00
2026-09-22 22:39:20 +08:00
2026-09-23 19:56:53 -05:00
2026-09-22 03:54:34 +08:00
2026-09-23 19:56:53 -05:00
2026-09-10 01:43:37 +08:00
2026-09-19 02:41:17 +08:00
2026-09-19 02:41:17 +08:00
2026-08-29 12:50:46 +08:00
2026-09-16 00:31:31 +08:00
2026-09-22 08:32:35 +08:00
2026-09-22 05:16:25 +08:00
2026-09-22 03:54:34 +08:00
2026-09-21 04:13:44 +08:00
2026-09-22 08:32:35 +08:00
2026-09-03 13:10:30 +08:00
2026-09-11 17:01:00 +08:00
2026-09-18 21:53:19 +08:00
2026-09-18 21:22:43 +08:00
2026-09-18 21:53:19 +08:00
2026-09-15 18:12:49 +08:00
2026-09-18 21:53:19 +08:00
2026-09-19 01:54:05 +08:00
2026-09-03 11:12:09 +08:00
2026-09-17 09:57:13 +08:00
2026-09-22 21:38:10 +08:00
2026-09-20 23:10:57 +09:00
2026-09-18 23:02:54 +08:00
2026-09-18 23:02:54 +08:00
2026-09-22 03:54:34 +08:00
2026-09-18 21:32:59 +08:00
2026-09-22 03:54:34 +08:00
2026-09-22 03:54:34 +08:00
2026-09-18 21:22:43 +08:00
2026-09-18 21:22:43 +08:00
2026-09-18 09:57:06 +08:00
2026-09-18 09:57:06 +08:00
2026-09-18 21:22:43 +08:00
2026-09-21 10:15:52 +08:00
2026-09-18 09:57:06 +08:00
2026-09-18 09:57:06 +08:00
2026-09-22 03:54:34 +08:00