include guardrailing action

This commit is contained in:
Luca Beurer-Kellner committed 2025-04-03 08:38:07 +02:00
1 parent 5afb142ab2
commit 83ced7aa37
2 files changed
+4 -1

No files matched your search

-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