mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-05 16:24:59 +00:00
feat - laker return orig response from lakera api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user