Merge pull request #38748 from BerriAI/litellm_fix_gpt55_extra_body_test

test(responses): adapt temperature tests to the gpt-5 reasoning validation
This commit is contained in:
Mateo Wang 2026-08-29 02:17:01 -07:00 • committed by GitHub
commit 3993829a21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1816,7 +1816,7 @@ async def test_extra_body_merges_with_request_data(extra_body_mock_response_data
await litellm.aresponses(
model="gpt-5.5",
input="Test",
temperature=0.7,
temperature=1,
max_output_tokens=20,
extra_body={
"custom_field": "custom_value",

View file

@ -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
# Out-of-range temperature on a non-reasoning model, so drop_params forwards it
client.responses.create(
model="gpt-5.5", input="This should fail", temperature=2000
model="gpt-4.1", input="This should fail", temperature=2000
)