mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
test(responses): expect the bad-temperature 400 on a non-reasoning model
This commit is contained in:
parent
81eb014e71
commit
66947fcf7c
1 changed files with 2 additions and 2 deletions
|
|
@ -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