mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-07-06 10:57:50 +02:00
include guardrailing action
This commit is contained in:
@@ -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")}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user