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: use a non-reasoning model for the responses bad-param e2e fixture

mateo-berri9da766a1f944
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 be565972b94..6abc6813761 100644
--- a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
+++ b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
@@ -115,9 +115,9 @@ def test_bad_request_error():
def test_bad_request_bad_param_error():
client = get_test_client()
with pytest.raises(BadRequestError):
- # Trigger error with invalid model name
+ # needs a non-reasoning model so drop_params keeps temperature for OpenAI to reject
client.responses.create(
- model="gpt-5.5", input="This should fail", temperature=2000
+ model="gpt-4.1-mini", input="This should fail", temperature=2000
)