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]

test(e2e): assert the forwarded Converse body without requiring the model to accept safety_identifier

Devin AIb38504b5a6f6
diff --git a/tests/e2e/llm_translation/test_responses_e2e.py b/tests/e2e/llm_translation/test_responses_e2e.py
index 1c2336bd166..525231de917 100644
--- a/tests/e2e/llm_translation/test_responses_e2e.py
+++ b/tests/e2e/llm_translation/test_responses_e2e.py
@@ -19,7 +19,6 @@ from e2e_config import PROVIDER_EDGE_ADVERTISE_HOST, PROVIDER_EDGE_BIND_HOST, un
from e2e_http import (
assert_client_error,
require_successful_call,
- unwrap,
)
from endpoints_client import (
EndpointsClient,
@@ -359,20 +358,15 @@ class TestResponses:
safety_identifier: Final = f"end-user-{unique_marker()}"
if endpoint == "/v1/responses":
- responses_result: Final = endpoints_client.responses(
- key, model, "reply with one word", safety_identifier=safety_identifier
- )
- require_successful_call(responses_result)
+ endpoints_client.responses(key, model, "reply with one word", safety_identifier=safety_identifier)
else:
- unwrap(
- endpoints_client.proxy.chat(
- key,
- ChatBody(
- model=model,
- messages=[ChatMessage(role="user", content="reply with one word")],
- safety_identifier=safety_identifier,
- ),
- )
+ endpoints_client.proxy.chat(
+ key,
+ ChatBody(
+ model=model,
+ messages=[ChatMessage(role="user", content="reply with one word")],
+ safety_identifier=safety_identifier,
+ ),
)
forwarded: Final = tuple(body.additionalModelRequestFields for body in capture.bodies)