chore: hide dated openai models in provider select

This commit is contained in:
imagineer99 2026-05-12 11:39:29 +01:00
parent 1e98b384e6
commit 048d73bf0d

View file

@ -33,6 +33,8 @@ PROVIDER_REGISTRY: dict[str, dict[str, Any]] = {
# never want to surface in the chat UI. Filtering here so backend
# is the single source of truth.
"model_id_allowlist": re.compile(r"^(gpt-5\.[345]|gpt-4\.5|o3)(?:[-.]|$)"),
# Hide dated snapshots
"model_id_denylist": re.compile(r"-\d{4}-\d{2}-\d{2}$"),
},
"anthropic": {
"display_name": "Anthropic",