Ahmed Ibrahim
f046cf35df
Scope model catalog caches to the current provider and auth identity ( #43906 )
...
## Why
Switching providers or authentication could reuse a previous identity's model catalog, including its default service tier. An in-flight refresh could also overwrite a newer account's catalog after cache storage completed.
## What changed
- Require a matching provider and auth identity for disk and in-memory catalog reuse. Treat legacy entries without an identity as cache misses and fall back to bundled metadata when the in-memory identity no longer matches.
- Recheck identity after fetching and storing a catalog before publishing it.
- Renew cache freshness only when the client version, identity, and ETag match the stored entry.
- Update cache fixtures to include the configured provider and auth identity.
## Testing
Add regression coverage for provider and auth switches, credential rotation, legacy and mismatched cache entries, conditional TTL renewal, and an account switch during cache storage. Verify that API-key requests do not inherit a ChatGPT catalog's default `service_tier`, while explicit tier selection still works.
GitOrigin-RevId: e15d7ffff238d951d7a1c6a68381cbb479994146
2026-09-08 20:37:30 +00:00
..
2026-09-04 10:22:43 +00:00
2026-09-02 22:45:19 +00:00
2026-08-30 07:40:36 +00:00
2026-08-26 16:28:35 +00:00
2026-08-31 00:53:30 +00:00
2026-09-04 10:12:03 +00:00
2026-08-20 17:46:05 +00:00
2026-08-20 17:46:05 +00:00
2026-08-24 19:52:27 +00:00
2026-08-13 00:00:16 +00:00
2026-09-07 11:07:28 +00:00
2026-08-29 03:44:01 +00:00
2026-08-25 21:34:05 +00:00
2026-09-01 05:17:11 +00:00
2026-09-03 23:20:54 +00:00
2026-09-03 16:21:10 +00:00
2026-08-13 00:00:16 +00:00
2026-09-08 17:51:40 +00:00
2026-08-25 23:42:50 +00:00
2026-09-02 22:45:19 +00:00
2026-09-02 22:45:19 +00:00
2026-09-05 01:04:12 +00:00
2026-09-02 22:45:19 +00:00
2026-09-08 10:46:07 +00:00
2026-09-07 11:07:28 +00:00
2026-08-28 02:09:07 +00:00
2026-08-25 19:54:52 +00:00
2026-08-20 18:29:35 +00:00
2026-08-27 00:02:26 +00:00
2026-08-20 18:29:35 +00:00
2026-08-26 16:28:35 +00:00
2026-06-18 14:09:38 +02:00
2026-09-01 00:42:19 +00:00
2026-08-28 01:14:02 +00:00
2026-09-02 22:45:19 +00:00
2026-09-05 01:04:12 +00:00
2026-09-07 11:51:20 +00:00
2026-09-08 11:03:44 +00:00
2026-09-07 12:04:27 +00:00
2026-09-08 15:56:58 +00:00
2026-08-21 21:51:12 +00:00
2026-09-07 18:10:05 +00:00
2026-09-07 13:58:57 +00:00
2026-08-29 03:14:35 +00:00
2026-08-30 14:04:06 +00:00
2026-09-04 20:27:18 +00:00
2026-09-02 22:45:19 +00:00
2026-09-08 20:37:30 +00:00
2026-08-25 01:27:18 +00:00
2026-09-02 22:45:19 +00:00
2026-09-01 15:04:11 +00:00
2026-06-15 21:53:47 -07:00
2026-08-25 23:42:50 +00:00
2026-08-27 00:02:26 +00:00
2026-09-03 15:12:02 +00:00
2026-08-27 20:31:40 +00:00
2026-08-04 15:23:43 +00:00
2026-08-26 16:28:35 +00:00
2026-08-30 14:04:06 +00:00
2026-09-02 22:45:19 +00:00
2026-09-03 00:17:19 +00:00
2026-09-07 17:26:10 +00:00
2026-09-08 20:37:30 +00:00
2026-05-18 21:03:51 -07:00
2026-08-13 00:00:16 +00:00
2026-09-07 12:36:57 +00:00
2026-08-30 07:40:36 +00:00
2026-09-08 20:37:30 +00:00
2026-09-08 20:37:30 +00:00
2026-08-20 17:46:05 +00:00
2026-08-29 03:28:19 +00:00
2026-09-07 15:10:37 +00:00
2026-08-27 00:02:26 +00:00
2026-09-04 12:08:02 +00:00
2026-09-08 18:40:17 +00:00
2026-08-25 23:42:50 +00:00
2026-09-01 14:43:27 +00:00
2026-06-08 13:55:15 -07:00
2026-09-05 01:04:12 +00:00
2026-08-29 03:44:01 +00:00
2026-09-06 02:28:38 +00:00
2026-09-01 16:58:54 +00:00
2026-07-14 10:37:23 +00:00
2026-08-31 00:53:30 +00:00
2026-07-22 20:23:35 +00:00
2026-08-13 00:00:16 +00:00
2026-08-31 22:38:23 +00:00
2026-08-01 01:17:26 +00:00
2026-09-07 20:25:30 +00:00
2026-08-31 22:29:40 +00:00
2026-09-08 10:46:07 +00:00
2026-09-03 16:21:10 +00:00
2026-09-06 02:28:38 +00:00
2026-08-13 00:00:16 +00:00
2026-08-31 20:50:44 +00:00
2026-08-31 20:50:44 +00:00
2026-08-30 14:04:06 +00:00
2026-09-02 20:41:14 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-26 19:44:12 +00:00
2026-07-22 00:50:28 +00:00
2026-08-31 21:15:38 +00:00
2026-08-26 03:28:57 +00:00
2026-08-28 10:39:10 +00:00
2026-09-02 22:45:19 +00:00
2026-09-06 02:28:38 +00:00
2026-08-23 06:10:44 +00:00
2026-09-01 12:23:20 +00:00
2026-07-23 19:19:35 +00:00
2026-08-13 00:00:16 +00:00
2026-08-20 17:46:05 +00:00
2026-08-30 14:04:06 +00:00
2026-09-02 22:45:19 +00:00
2026-08-25 17:27:04 +00:00
2026-09-01 21:16:12 +00:00
2026-08-20 17:46:05 +00:00
2026-09-01 00:42:19 +00:00
2026-08-27 01:22:23 +00:00
2026-09-06 02:28:38 +00:00
2026-09-08 16:24:38 +00:00
2026-08-25 17:41:22 +00:00
2026-09-02 02:09:35 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-08-30 07:40:36 +00:00
2026-08-28 09:48:13 +00:00
2026-09-06 02:28:38 +00:00
2026-09-02 22:45:19 +00:00
2026-08-30 07:40:36 +00:00
2026-08-30 14:04:06 +00:00
2026-08-20 17:46:05 +00:00
2026-08-30 07:40:36 +00:00
2026-08-30 14:04:06 +00:00
2026-08-25 19:54:52 +00:00
2026-09-04 20:38:08 +00:00
2026-09-04 12:08:02 +00:00
2026-09-07 17:35:23 +00:00
2026-08-28 15:44:48 +00:00
2026-09-07 17:35:23 +00:00
2026-09-04 10:22:43 +00:00
2026-08-10 19:26:52 +00:00
2026-08-13 00:00:16 +00:00
2026-08-28 18:07:40 +00:00
2026-09-06 02:28:38 +00:00
2026-08-14 01:23:59 +00:00
2026-08-13 00:00:16 +00:00
2026-08-26 22:37:59 +00:00
2026-09-04 19:40:01 +00:00
2026-09-02 23:58:24 +00:00
2026-08-20 06:29:32 +00:00