From b2ed84139bb6b8d02df9338adda3e2b4a7b22ac7 Mon Sep 17 00:00:00 2001 From: Hexecu Date: Mon, 15 Jun 2026 11:43:16 +0200 Subject: [PATCH] docs(azure): clarify why o-series instantiates AzureOpenAIConfig AzureOpenAIO1Config does not inherit from AzureOpenAIConfig, unlike the GPT-5 path, so the Azure gating is reached via an instance. Add a short comment so the two call styles are not accidentally unified later. --- litellm/llms/azure/chat/o_series_transformation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/llms/azure/chat/o_series_transformation.py b/litellm/llms/azure/chat/o_series_transformation.py index 02d3e6a1633..7b541e37322 100644 --- a/litellm/llms/azure/chat/o_series_transformation.py +++ b/litellm/llms/azure/chat/o_series_transformation.py @@ -58,6 +58,9 @@ class AzureOpenAIO1Config(OpenAIOSeriesConfig): ) if azure_gated_params: + # AzureOpenAIO1Config does not inherit from AzureOpenAIConfig, so the + # Azure gating is reached via an instance rather than the unbound-self + # dispatch used in the GPT-5 path. optional_params = AzureOpenAIConfig().map_openai_params( non_default_params=azure_gated_params, optional_params=optional_params,