mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
openai[patch]: add back azure embeddings api_version alias (#26003)
This commit is contained in:
commit
34fc00aff1
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user