forked from phoenix/litellm-mirror
feat - laker return orig response from lakera api
This commit is contained in:
parent
c151a1d244
commit
e2046bd59c
1 changed files with 5 additions and 1 deletions
|
@ -114,7 +114,11 @@ class _ENTERPRISE_lakeraAI_Moderation(CustomLogger):
|
|||
|
||||
if flagged == True:
|
||||
raise HTTPException(
|
||||
status_code=400, detail={"error": "Violated content safety policy"}
|
||||
status_code=400,
|
||||
detail={
|
||||
"error": "Violated content safety policy",
|
||||
"lakera_ai_response": _json_response,
|
||||
},
|
||||
)
|
||||
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue