test(test_batch_completions.py): handle anthropic overloaded error

This commit is contained in:
Krrish Dholakia 2024-03-26 13:55:03 -07:00
parent 7d38c62717
commit 4d7f4550e2
2 changed files with 3 additions and 1 deletions

View file

@ -7231,7 +7231,7 @@ def exception_type(
exception_mapping_worked = True
raise APIError(
status_code=original_exception.status_code,
message=f"AnthropicException - {original_exception.message}",
message=f"AnthropicException - {original_exception.message}. Handle with `litellm.APIError`.",
llm_provider="anthropic",
model=model,
request=original_exception.request,