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]

# expect an error when getting the response again since

Ishaan Jaff2e9fb2f6bac7
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 1da0e740a9a..8dddfc7da74 100644
--- a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
+++ b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
@@ -86,10 +86,7 @@ def test_basic_response():
delete_response = client.responses.delete(response.id)
print("DELETE response=", delete_response)
- # try getting the response again, we should not get it back
- get_response = client.responses.retrieve(response.id)
- print("GET response after delete=", get_response)
-
+ # expect an error when getting the response again since it was deleted
with pytest.raises(Exception):
get_response = client.responses.retrieve(response.id)