From 8e5901e90aa8becc073df8ef8a5bc5c9b53dcdc1 Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 9 Sep 2026 11:21:29 +0200 Subject: [PATCH] chore(chatgpt): document unmapped model exception contract --- litellm/llms/chatgpt/realtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/chatgpt/realtime.py b/litellm/llms/chatgpt/realtime.py index 93a79b7d159..831f67d82c5 100644 --- a/litellm/llms/chatgpt/realtime.py +++ b/litellm/llms/chatgpt/realtime.py @@ -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"