mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 02:23:35 +00:00
(feat) add ollama_chat exception mapping
This commit is contained in:
+3
-1
@@ -6050,7 +6050,9 @@ def exception_type(
|
||||
)
|
||||
raise original_exception
|
||||
raise original_exception
|
||||
elif custom_llm_provider == "ollama":
|
||||
elif (
|
||||
custom_llm_provider == "ollama" or custom_llm_provider == "ollama_chat"
|
||||
):
|
||||
if isinstance(original_exception, dict):
|
||||
error_str = original_exception.get("error", "")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user