forked from phoenix/litellm-mirror
fix ContentPolicyViolationError mapping
This commit is contained in:
parent
cc11cedf02
commit
4e795dad81
1 changed files with 1 additions and 0 deletions
|
@ -7175,6 +7175,7 @@ def exception_type(
|
||||||
in error_str
|
in error_str
|
||||||
)
|
)
|
||||||
or "Your task failed as a result of our safety system" in error_str
|
or "Your task failed as a result of our safety system" in error_str
|
||||||
|
or "The model produced invalid content" in error_str
|
||||||
):
|
):
|
||||||
exception_mapping_worked = True
|
exception_mapping_worked = True
|
||||||
raise ContentPolicyViolationError(
|
raise ContentPolicyViolationError(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue