mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
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:
parent
037f0f2504
commit
b2ed84139b
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue