forked from phoenix/litellm-mirror
fix(utils.py): add coverage for anthropic content policy error - vertex ai
This commit is contained in:
parent
cccc55213b
commit
6e02ac0056
1 changed files with 5 additions and 1 deletions
|
@ -6470,7 +6470,11 @@ def exception_type(
|
|||
),
|
||||
litellm_debug_info=extra_information,
|
||||
)
|
||||
elif "The response was blocked." in error_str:
|
||||
elif (
|
||||
"The response was blocked." in error_str
|
||||
or "Output blocked by content filtering policy"
|
||||
in error_str # anthropic on vertex ai
|
||||
):
|
||||
exception_mapping_worked = True
|
||||
raise ContentPolicyViolationError(
|
||||
message=f"VertexAIException ContentPolicyViolationError - {error_str}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue