forked from phoenix/litellm-mirror
(feat) add ollama_chat exception mapping
This commit is contained in:
parent
f27a93a4dc
commit
67ed1ee10e
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue