mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
openai[patch]: add back azure embeddings api_version alias
This commit is contained in:
@@ -125,7 +125,8 @@ class AzureOpenAIEmbeddings(OpenAIEmbeddings):
|
||||
)
|
||||
"""Automatically inferred from env var `AZURE_OPENAI_API_KEY` if not provided."""
|
||||
openai_api_version: Optional[str] = Field(
|
||||
default_factory=from_env("OPENAI_API_VERSION", default="2023-05-15")
|
||||
default_factory=from_env("OPENAI_API_VERSION", default="2023-05-15"),
|
||||
alias="api_version",
|
||||
)
|
||||
"""Automatically inferred from env var `OPENAI_API_VERSION` if not provided.
|
||||
|
||||
|
Reference in New Issue
Block a user