|
|
|
@ -46,7 +46,7 @@ class AzureOpenAI(BaseOpenAI):
|
|
|
|
|
deployment_name: str | None = Field(
|
|
|
|
|
default=None, alias="azure_deployment"
|
|
|
|
|
)
|
|
|
|
|
"""A model deployment.
|
|
|
|
|
"""A model deployment.
|
|
|
|
|
|
|
|
|
|
If given sets the base client URL to include `/deployments/{azure_deployment}`.
|
|
|
|
|
Note: this means you won't be able to use non-deployment endpoints.
|
|
|
|
@ -62,7 +62,7 @@ class AzureOpenAI(BaseOpenAI):
|
|
|
|
|
|
|
|
|
|
Automatically inferred from env var `AZURE_OPENAI_AD_TOKEN` if not provided.
|
|
|
|
|
|
|
|
|
|
For more:
|
|
|
|
|
For more:
|
|
|
|
|
https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id.
|
|
|
|
|
""" # noqa: E501
|
|
|
|
|
azure_ad_token_provider: Callable[[], str] | None = None
|
|
|
|
@ -73,7 +73,7 @@ class AzureOpenAI(BaseOpenAI):
|
|
|
|
|
openai_api_type: str = ""
|
|
|
|
|
"""Legacy, for openai<1.0.0 support."""
|
|
|
|
|
validate_base_url: bool = True
|
|
|
|
|
"""For backwards compatibility. If legacy val openai_api_base is passed in, try to
|
|
|
|
|
"""For backwards compatibility. If legacy val openai_api_base is passed in, try to
|
|
|
|
|
infer if it is a base_url or azure_endpoint and update accordingly.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|