mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
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
|
||||
)
|
||||
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
|
||||
raise ContentPolicyViolationError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue