chore(chatgpt): document unmapped model exception contract

This commit is contained in:
jibanez-staticduo 2026-09-09 11:21:29 +02:00
parent 3686f6a005
commit 8e5901e90a
No known key found for this signature in database

View file

@ -38,7 +38,7 @@ def realtime_headers(
def realtime_endpoint(model: str) -> str:
try:
model_info: Final = get_model_info(model, custom_llm_provider="chatgpt")
except Exception:
except Exception: # noqa: BLE001 # get_model_info raises bare Exception for unmapped models
return "realtime"
return "live" if "/v1/live" in (model_info.get("supported_endpoints") or ()) else "realtime"