mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Azure rejects the legacy `max_tokens` key for the whole gpt-5 name family, but `AzureOpenAIGPT5Config.is_model_gpt_5_model` deliberately excludes `gpt-5-chat*` so those deployments fall through to `AzureOpenAIConfig`, which sends `max_tokens` verbatim and gets a 400 back on every request that carries it, `/health` probes included. One predicate was answering two independent questions. Split it: the new `AzureOpenAIConfig.requires_max_completion_tokens` covers the whole gpt-5 name family and drives only the rename, while `is_model_gpt_5_model` keeps keying reasoning_effort, the temperature clamp and the dropped penalties off the reasoning question, so #13781 stays fixed. |
||
|---|---|---|
| .. | ||
| batches | ||
| chat | ||
| image_edit | ||
| image_generation | ||
| passthrough | ||
| realtime | ||
| response | ||
| text_to_speech | ||
| videos | ||
| test_azure_common_utils.py | ||
| test_azure_cost_calculation.py | ||
| test_azure_exception_mapping.py | ||
| test_azure_fine_tuning_api.py | ||
| test_azure_speech_audio_transcription.py | ||