sayan-oai
0b6c2e5652
fix: also try matching namespaced prefix for modelinfo candidate ( #12658 )
...
#### What
Try matching `\w+`-namespaced model after `longest prefix` as heuristic
to match `ModelInfo` from list of candidates.
This shouldn't regress existing behavior:
- `gpt-5.2-codex` -> `gpt-5.2` if `gpt-5.2-codex` not present
- `gpt-5.3` -> `gpt-5` if `gpt-5.3` not present
- `gpt-9` still doesn't match anything
while being more forgiving for custom prefixes:
- `oai/gpt-5.3-codex` -> `gpt-5.3-codex`
#### Tests
Added unit test.
History
..
2026-02-20 23:13:08 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 08:15:47 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 09:48:57 -08:00
2026-02-18 09:27:04 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 08:15:47 -08:00
2026-02-21 20:08:04 +00:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2025-11-21 22:10:52 +00:00
2026-02-04 08:38:06 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2025-11-13 17:12:10 -08:00
2025-12-23 19:29:32 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 09:48:57 -08:00
2026-02-19 10:38:57 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-17 11:43:16 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 10:26:19 -05:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 09:48:57 -08:00
2026-02-20 14:39:49 +00:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2025-11-13 17:12:10 -08:00
2026-02-23 14:39:07 -08:00
2026-02-24 10:57:26 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 09:48:57 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-09 20:03:32 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-23 22:28:58 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 14:39:49 +00:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-19 11:32:10 +00:00
2025-11-20 11:04:11 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-13 12:48:29 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-20 23:45:35 -08:00
2026-02-22 23:00:08 -08:00
2026-02-20 23:45:35 -08:00
2026-02-24 08:15:47 -08:00