forked from phoenix/litellm-mirror
fix(utils.py): handle together ai timeout exception
This commit is contained in:
parent
8f140cb5ee
commit
622858e37c
1 changed files with 7 additions and 1 deletions
|
@ -9695,7 +9695,13 @@ def exception_type(
|
||||||
llm_provider="together_ai",
|
llm_provider="together_ai",
|
||||||
response=original_exception.response,
|
response=original_exception.response,
|
||||||
)
|
)
|
||||||
|
elif "A timeout occurred" in error_str:
|
||||||
|
exception_mapping_worked = True
|
||||||
|
raise Timeout(
|
||||||
|
message=f"TogetherAIException - {error_str}",
|
||||||
|
model=model,
|
||||||
|
llm_provider="together_ai",
|
||||||
|
)
|
||||||
elif (
|
elif (
|
||||||
"error" in error_response
|
"error" in error_response
|
||||||
and "API key doesn't match expected format."
|
and "API key doesn't match expected format."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue