fix(utils.py): fix palm exception mapping

This commit is contained in:
Krrish Dholakia 2024-02-28 14:33:03 -08:00 committed by ishaan-jaff
parent 45ce0d4d3b
commit 768ce68fc9

View file

@ -6972,7 +6972,7 @@ def exception_type(
if "500 An internal error has occurred." in error_str:
exception_mapping_worked = True
raise APIError(
status_code=original_exception.status_code,
status_code=getattr(original_exception, "status_code", 500),
message=f"PalmException - {original_exception.message}",
llm_provider="palm",
model=model,