feat - laker return orig response from lakera api
This commit is contained in:
parent
c151a1d244
commit
e2046bd59c
@ -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…
Reference in New Issue
Block a user