Fix formatting

pull/388/head
Wyatt Stanke 1 year ago
parent aff17c2ee7
commit 6797a7be85
No known key found for this signature in database
GPG Key ID: CE6BA5FFF135536D

@ -46,7 +46,7 @@ class AzureOpenAI(BaseOpenAI):
deployment_name: str | None = Field( deployment_name: str | None = Field(
default=None, alias="azure_deployment" default=None, alias="azure_deployment"
) )
"""A model deployment. """A model deployment.
If given sets the base client URL to include `/deployments/{azure_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. 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. 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. https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id.
""" # noqa: E501 """ # noqa: E501
azure_ad_token_provider: Callable[[], str] | None = None azure_ad_token_provider: Callable[[], str] | None = None
@ -73,7 +73,7 @@ class AzureOpenAI(BaseOpenAI):
openai_api_type: str = "" openai_api_type: str = ""
"""Legacy, for openai<1.0.0 support.""" """Legacy, for openai<1.0.0 support."""
validate_base_url: bool = True 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. infer if it is a base_url or azure_endpoint and update accordingly.
""" """

Loading…
Cancel
Save