fix(utils.py): improved togetherai exception mapping

This commit is contained in:
Krrish Dholakia 2023-12-14 15:28:11 -08:00
parent 804d58eb20
commit e1679a44da
3 changed files with 18 additions and 17 deletions

Binary file not shown.

BIN
dist/litellm-1.14.5.dev1.tar.gz vendored Normal file

Binary file not shown.

View file

@ -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}",