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(responses): fix stale Anthropic smoke request

Yuneng Jiang442387685744
diff --git a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
index 7e338dafb86..4a392042d63 100644
--- a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
+++ b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
@@ -127,14 +127,14 @@ def test_bad_request_bad_param_error():
)
-def test_anthropic_with_responses_api():
- client = get_test_client()
- response = client.responses.create(
- model="anthropic/claude-sonnet-4-5-20250929",
+def test_anthropic_with_responses_api() -> None:
+ client: Final = get_test_client()
+ response: Final = client.responses.create(
+ model="anthropic/claude-sonnet-5",
input="just respond with the word 'ping'",
- previous_response_id="hi",
)
- print("anthropic response=", response)
+ assert response.status == "completed"
+ assert response.output_text.strip()
def test_cancel_response():