forked from phoenix/litellm-mirror
fix(utils.py): fix palm exception mapping
This commit is contained in:
parent
45ce0d4d3b
commit
768ce68fc9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue