fix: improve error message for supports-none models with temperature

This commit is contained in:
Chesars 2026-03-22 18:37:34 -03:00
parent f8a9bbd537
commit bfee7f0b58

View File

@ -87,6 +87,8 @@ class OpenAIResponsesAPIConfig(BaseResponsesAPIConfig):
message=(
"gpt-5 models don't support temperature={}. "
"Only temperature=1 is supported. "
"For models like gpt-5.1/5.4, temperature is supported "
"when reasoning.effort='none' (or not specified). "
"To drop unsupported params set `litellm.drop_params = True`"
).format(temperature),
status_code=400,