mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-12 23:05:52 +00:00
fix(utils.py): handle anthropic overloaded error
This commit is contained in:
+4
-1
@@ -6787,7 +6787,10 @@ def exception_type(
|
||||
llm_provider="anthropic",
|
||||
model=model,
|
||||
)
|
||||
elif original_exception.status_code == 500:
|
||||
elif (
|
||||
original_exception.status_code == 500
|
||||
or original_exception.status_code == 529
|
||||
):
|
||||
exception_mapping_worked = True
|
||||
raise litellm.InternalServerError(
|
||||
message=f"AnthropicException - {error_str}. Handle with `litellm.InternalServerError`.",
|
||||
|
||||
Reference in New Issue
Block a user