Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix test guardrails

Ishaan Jaff04efdd66c089
diff --git a/tests/otel_tests/test_guardrails.py b/tests/otel_tests/test_guardrails.py
index b82bc57ccfb..c48a5ba79bc 100644
--- a/tests/otel_tests/test_guardrails.py
+++ b/tests/otel_tests/test_guardrails.py
@@ -41,7 +41,7 @@ async def chat_completion(
print()
if status != 200:
- raise Exception(f"Request did not return a 200 status code: {status}")
+ return response_text
# response headers
response_headers = response.headers