Update litellm/proxy/guardrails/guardrail_hooks/deepkeep/deepkeep.py

Co-authored-by: veria-ai[bot] <224490171+veria-ai[bot]@users.noreply.github.com>
This commit is contained in:
DK-yaniv 2026-06-17 17:06:00 +03:00 • committed by GitHub
parent d8c43e8c76
commit ca5666f8b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -256,7 +256,7 @@ class DeepKeepGuardrail(CustomGuardrail):
return_inputs["images"] = response_json["images"]
elif images:
return_inputs["images"] = images
if response_json.get("tools"):
if response_json.get("tools") is not None:
return_inputs["tools"] = response_json["tools"]
elif tools:
return_inputs["tools"] = tools