mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore: formatting across codebase (#32466)
This commit is contained in:
@@ -115,7 +115,10 @@ class AzureOpenAIEmbeddings(OpenAIEmbeddings): # type: ignore[override]
|
||||
"""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.
|
||||
|
||||
.. note::
|
||||
This means you won't be able to use non-deployment endpoints.
|
||||
|
||||
"""
|
||||
# Check OPENAI_KEY for backwards compatibility.
|
||||
# TODO: Remove OPENAI_API_KEY support to avoid possible conflict when using
|
||||
@@ -132,7 +135,7 @@ class AzureOpenAIEmbeddings(OpenAIEmbeddings): # type: ignore[override]
|
||||
alias="api_version",
|
||||
)
|
||||
"""Automatically inferred from env var ``OPENAI_API_VERSION`` if not provided.
|
||||
|
||||
|
||||
Set to ``'2023-05-15'`` by default if env variable ``OPENAI_API_VERSION`` is not
|
||||
set.
|
||||
"""
|
||||
|
||||
@@ -43,10 +43,13 @@ class AzureOpenAI(BaseOpenAI):
|
||||
Example: ``'https://example-resource.azure.openai.com/'``
|
||||
"""
|
||||
deployment_name: Union[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.
|
||||
|
||||
.. note::
|
||||
This means you won't be able to use non-deployment endpoints.
|
||||
|
||||
"""
|
||||
openai_api_version: Optional[str] = Field(
|
||||
alias="api_version",
|
||||
@@ -87,7 +90,7 @@ class AzureOpenAI(BaseOpenAI):
|
||||
)
|
||||
"""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.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user