mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
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:
commit
3993829a21
2 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue