mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
9768eca33e
* fix(azure): add logprobs support for Azure OpenAI GPT-5 models Azure OpenAI GPT-5 models (including gpt-5.2) support logprobs parameters, unlike OpenAI's GPT-5 reasoning models. This fix overrides the parent class restriction to enable logprobs for Azure. Changes: - Override get_supported_openai_params() in AzureOpenAIGPT5Config - Add "logprobs" and "top_logprobs" to supported params - Add comprehensive tests for logprobs functionality Testing: - Verified with direct Azure API calls to gpt-5.2 - API version: 2025-01-01-preview - Successfully returns logprobs data Related: #7974, #4022 * refactor: restrict logprobs support to gpt-5.2 only Only gpt-5.2 has been verified to support logprobs on Azure. Other gpt-5 variants (gpt-5, gpt-5.1) have not been tested. Changes: - Add conditional check for is_model_gpt_5_2_model() - Update tests to be specific to gpt-5.2 - Add negative tests for gpt-5 and gpt-5.1 - Update documentation to reflect gpt-5.2 specificity
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.