mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
chore(chatgpt): document unmapped model exception contract
This commit is contained in:
parent
3686f6a005
commit
8e5901e90a
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue