forked from phoenix/litellm-mirror
fix(utils.py): improved togetherai exception mapping
This commit is contained in:
parent
804d58eb20
commit
e1679a44da
3 changed files with 18 additions and 17 deletions
BIN
dist/litellm-1.14.5.dev1-py3-none-any.whl
vendored
Normal file
BIN
dist/litellm-1.14.5.dev1-py3-none-any.whl
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-1.14.5.dev1.tar.gz
vendored
Normal file
BIN
dist/litellm-1.14.5.dev1.tar.gz
vendored
Normal file
Binary file not shown.
|
@ -4858,7 +4858,8 @@ def exception_type(
|
|||
llm_provider="together_ai",
|
||||
response=original_exception.response
|
||||
)
|
||||
elif original_exception.status_code == 408:
|
||||
if hasattr(original_exception, "status_code"):
|
||||
if original_exception.status_code == 408:
|
||||
exception_mapping_worked = True
|
||||
raise Timeout(
|
||||
message=f"TogetherAIException - {original_exception.message}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue