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.
This commit is contained in:
Hexecu 2026-06-15 11:43:16 +02:00
parent 037f0f2504
commit b2ed84139b

View file

@ -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,