debug-zhang
aede013903
fix(openai): fall back to a local Codex models manifest
...
Root cause: Codex /models requests always fetch the manifest from a
scheduled upstream. Custom API-key upstreams that do not implement
/v1/models return 5xx, an empty catalog, or a non-standard body, so the
gateway exhausts account failover and returns 502 even when the group
can describe its models locally.
Change: generate a local Codex manifest when every candidate fails (or
the account switch budget is exhausted) and when an upstream returns an
empty manifest. Sources follow the group's models_list_config, then the
group accounts' model_mapping keys, then the default OpenAI catalog, with
the same retired-model filter as /v1/models. The local list only replaces
the upstream error when it is non-empty, keeps ETag/304 revalidation, and
leaves successful upstream manifests untouched. Pinned discovery mode
keeps its explicit FallbackToScheduler contract.
Tests: cover 5xx/empty/non-JSON upstream fallback, all-candidates-failed
fallback, source priority, upstream success regression, ETag
revalidation, and preserving the original error when the local list is
empty.
2026-12-02 21:16:00 +08:00
..
2026-12-02 15:34:05 +08:00
2026-12-01 15:47:27 +00:00
2026-05-26 10:49:20 +08:00
2026-02-02 22:13:50 +08:00
2026-08-09 22:42:51 +08:00
2026-10-09 11:39:18 +08:00
2026-08-06 20:34:37 +08:00
2026-09-05 16:05:17 +08:00
2026-05-19 15:27:47 +08:00
2026-05-19 15:27:47 +08:00
2026-05-19 15:27:47 +08:00
2026-08-04 20:57:15 +08:00
2026-09-23 01:24:59 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 15:09:29 +08:00
2026-07-16 13:47:50 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 20:57:15 +08:00
2026-04-22 12:30:00 +08:00
2026-11-10 15:03:59 +08:00
2026-08-07 03:09:57 +08:00
2026-05-21 15:19:29 +08:00
2026-05-21 15:19:29 +08:00
2026-08-24 12:02:53 +08:00
2026-07-28 17:21:32 +08:00
2026-11-10 15:03:59 +08:00
2026-08-04 20:57:15 +08:00
2026-09-20 16:41:49 +08:00
2026-11-08 22:00:15 +08:00
2026-12-01 22:20:36 +08:00
2026-08-18 04:14:15 +00:00
2026-08-30 09:28:40 +08:00
2026-08-30 09:28:40 +08:00
2026-07-15 22:22:51 +08:00
2026-10-24 11:28:25 +08:00
2026-11-06 10:15:12 +08:00
2026-09-26 17:13:10 +08:00
2026-09-03 12:48:02 +08:00
2026-12-01 22:20:36 +08:00
2026-12-01 22:20:36 +08:00
2026-12-01 22:20:36 +08:00
2026-10-10 23:37:47 +08:00
2026-10-10 23:37:47 +08:00
2026-08-01 22:39:33 +08:00
2026-08-20 18:16:38 -07:00
2026-08-20 18:16:38 -07:00
2026-11-18 14:30:09 +08:00
2026-10-20 01:25:19 +08:00
2026-05-26 10:49:20 +08:00
2026-09-26 17:13:10 +08:00
2026-12-02 15:34:05 +08:00
2026-09-24 16:20:28 +08:00
2026-09-26 17:13:10 +08:00
2026-07-27 15:20:03 +00:00
2026-12-02 15:34:05 +08:00
2026-03-15 16:21:49 +08:00
2026-07-13 11:35:46 +08:00
2026-10-20 23:49:34 +08:00
2026-12-01 22:20:36 +08:00
2026-02-07 22:14:07 +08:00
2026-07-13 15:32:42 +08:00
2026-09-08 19:12:37 +08:00
2026-11-11 17:46:45 +08:00
2026-07-14 14:55:30 +08:00
2026-11-11 17:46:45 +08:00
2026-09-28 16:14:43 -04:00
2026-09-28 16:14:43 -04:00
2026-07-23 09:20:52 +08:00
2026-11-24 08:58:55 +08:00
2026-09-15 16:50:46 +08:00
2026-09-20 20:20:16 +08:00
2026-12-01 15:35:35 +00:00
2026-11-20 21:20:09 -08:00
2026-10-02 13:08:40 +08:00
2026-12-01 22:20:36 +08:00
2026-12-01 22:20:36 +08:00
2026-10-27 12:11:54 +08:00
2026-10-13 00:54:27 +08:00
2026-10-12 17:14:56 +08:00
2026-12-01 22:20:36 +08:00
2026-02-07 17:12:15 +08:00
2026-10-20 23:49:34 +08:00
2026-10-19 23:53:29 +08:00
2026-10-19 23:53:29 +08:00
2026-10-28 16:00:21 +08:00
2026-10-15 06:55:32 +09:00
2026-12-01 22:20:36 +08:00
2026-10-11 22:03:36 +08:00
2026-08-13 08:38:10 +08:00
2026-11-07 02:07:37 +08:00
2026-12-01 22:20:36 +08:00
2026-11-19 15:47:59 +08:00
2026-09-17 04:14:14 +09:00
2026-08-07 16:29:57 +08:00
2026-12-01 22:20:36 +08:00
2026-10-09 11:39:18 +08:00
2026-10-28 05:54:56 +08:00
2026-02-23 12:45:37 +08:00
2026-02-23 12:45:37 +08:00
2026-05-26 10:49:20 +08:00
2026-05-05 03:26:54 +08:00
2026-07-20 15:20:51 +08:00
2026-11-06 03:00:03 -05:00
2026-11-07 01:52:36 +08:00
2026-02-12 19:01:09 +08:00
2026-10-29 14:46:08 -04:00
2026-10-29 14:46:08 -04:00
2026-11-06 10:15:12 +08:00
2026-10-12 18:09:03 +08:00
2026-11-08 22:00:15 +08:00
2026-12-01 23:19:41 +08:00
2026-12-01 23:19:41 +08:00
2026-11-29 11:24:35 +09:00
2026-12-02 15:34:05 +08:00
2026-11-06 03:00:03 -05:00
2026-07-16 00:52:26 +08:00
2026-10-30 15:19:54 +08:00
2026-12-01 22:20:36 +08:00
2026-08-31 21:04:29 +08:00
2026-11-16 17:03:29 +08:00
2026-12-02 21:16:00 +08:00
2026-12-02 21:16:00 +08:00
2026-12-02 21:16:00 +08:00
2026-11-05 21:51:26 +08:00
2026-09-29 01:50:21 +08:00
2026-09-03 11:39:23 +08:00
2026-12-01 22:20:36 +08:00
2026-09-11 15:39:13 +08:00
2026-08-14 18:18:53 +08:00
2026-08-14 18:18:53 +08:00
2026-12-01 22:20:36 +08:00
2026-07-23 00:06:04 +08:00
2026-12-01 23:19:41 +08:00
2026-11-05 21:51:26 +08:00
2026-03-15 22:13:42 +08:00
2026-07-15 13:01:16 +08:00
2026-12-02 15:53:42 +08:00
2026-12-02 15:53:42 +08:00
2026-11-14 08:04:02 -08:00
2026-07-26 13:33:56 +08:00
2026-07-26 13:33:56 +08:00
2026-05-28 22:44:25 +08:00
2026-09-23 15:29:11 +08:00
2026-08-19 18:51:21 +08:00
2026-10-01 11:27:35 +08:00
2026-11-20 11:32:05 +08:00
2026-11-20 11:32:05 +08:00
2026-07-17 15:29:14 +08:00
2026-07-15 04:20:11 +08:00
2026-12-01 23:19:41 +08:00
2026-05-05 03:26:54 +08:00
2026-09-11 15:57:09 +08:00
2026-10-27 16:26:45 +00:00
2026-11-27 13:51:32 +08:00
2026-12-02 15:53:42 +08:00
2026-11-03 13:18:50 +08:00
2026-12-01 22:20:36 +08:00
2026-08-19 04:40:32 +00:00
2026-12-01 22:20:36 +08:00
2026-09-07 18:33:39 +08:00
2026-09-10 15:57:17 +08:00
2026-11-12 11:10:32 -08:00
2026-12-02 09:47:40 +08:00
2026-12-02 09:47:40 +08:00
2026-08-14 16:23:52 +08:00
2026-08-01 22:39:33 +08:00
2026-06-28 11:13:09 +08:00
2026-11-06 03:00:02 -05:00
2026-09-07 17:58:20 +08:00
2026-07-15 09:29:05 +08:00
2026-07-19 18:49:08 +08:00
2026-08-20 22:01:20 -07:00
2026-11-25 04:01:48 +08:00
2026-11-07 17:43:14 +08:00
2026-11-07 19:23:53 +08:00
2026-09-04 10:14:29 +08:00
2026-06-03 14:18:12 +08:00
2026-06-03 14:18:12 +08:00
2026-08-28 13:17:43 +08:00
2026-08-17 19:45:07 +08:00
2026-09-29 01:50:21 +08:00
2026-08-13 08:37:57 +08:00
2026-08-13 08:37:57 +08:00
2026-08-20 22:01:20 -07:00
2026-07-18 00:11:18 +08:00
2026-06-12 01:47:01 +08:00
2026-10-10 23:37:48 +08:00
2026-11-03 23:01:12 +08:00
2026-11-03 23:01:12 +08:00
2026-08-19 23:13:40 -07:00
2026-07-23 09:19:25 +08:00
2026-05-12 15:21:31 +08:00
2026-06-10 14:16:51 +08:00
2026-08-04 15:09:29 +08:00
2026-08-04 20:57:15 +08:00
2026-07-13 15:22:39 +08:00
2026-10-09 11:39:18 +08:00
2026-10-16 09:39:55 +08:00
2026-10-16 09:39:55 +08:00
2026-09-16 13:19:15 +08:00
2026-10-09 11:39:18 +08:00
2026-11-20 10:50:32 +08:00
2026-11-20 10:50:32 +08:00
2026-07-07 13:53:39 +08:00
2026-07-07 13:53:39 +08:00
2026-11-20 10:50:32 +08:00
2026-11-20 10:50:32 +08:00
2026-07-17 00:39:39 +08:00
2026-12-01 22:20:36 +08:00
2026-08-11 11:56:46 +08:00
2026-12-01 22:20:36 +08:00
2026-07-17 00:39:39 +08:00
2026-10-10 23:37:47 +08:00
2026-09-17 04:14:14 +09:00
2026-09-17 04:14:14 +09:00
2026-08-06 20:34:37 +08:00
2026-10-28 09:30:23 -04:00
2026-10-20 23:49:34 +08:00
2026-09-14 11:45:53 +08:00
2026-09-14 11:45:53 +08:00
2026-10-09 11:39:18 +08:00
2026-07-16 16:49:08 +08:00
2026-11-26 00:45:37 +08:00
2026-11-26 00:45:37 +08:00
2026-04-09 18:14:28 +08:00
2026-11-26 01:01:21 +08:00
2026-11-04 23:54:03 +08:00
2026-11-04 23:54:03 +08:00
2026-08-07 17:58:23 +08:00
2026-08-01 11:29:58 +08:00
2026-11-10 15:03:59 +08:00
2026-05-26 10:49:20 +08:00
2026-11-11 17:46:45 +08:00
2026-05-26 10:49:20 +08:00
2026-10-28 05:54:56 +08:00