include guardrailing action

This commit is contained in:
Luca Beurer-Kellner
2025-04-03 08:38:07 +02:00
parent 5afb142ab2
commit 83ced7aa37
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -50,7 +50,6 @@ def create_annotations_from_guardrails_errors(
address=r,
extra_metadata={
"source": "guardrails-error",
"guardrail-action": action,
# if included in error, also include the source of the guardrail
**(
{"guardrail_content": error.get("guardrail_content")}
+4
View File
@@ -1,3 +1,7 @@
"""
Simple (non-streaming) test client for the Gateway (uses OpenAI integration).
"""
from openai import OpenAI
from httpx import Client
import os