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): repair two tests broken by the gpt-5 temperature gate

mateo-berri2968c246b923
diff --git a/tests/llm_responses_api_testing/test_openai_responses_api.py b/tests/llm_responses_api_testing/test_openai_responses_api.py
index 5f77d5a5477..cbe8204bfb5 100644
--- a/tests/llm_responses_api_testing/test_openai_responses_api.py
+++ b/tests/llm_responses_api_testing/test_openai_responses_api.py
@@ -1818,6 +1818,7 @@ async def test_extra_body_merges_with_request_data(extra_body_mock_response_data
input="Test",
temperature=0.7,
max_output_tokens=20,
+ reasoning={"effort": "none"},
extra_body={
"custom_field": "custom_value",
},
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
)