(feat) add ollama_chat exception mapping
This commit is contained in:
parent
f27a93a4dc
commit
67ed1ee10e
@ -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…
Reference in New Issue
Block a user