Skip to content

Commit

Permalink
openai[patch]: add back azure embeddings api_version alias
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan committed Sep 4, 2024
1 parent bc3b851 commit 4b99426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/partners/openai/langchain_openai/embeddings/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4b99426

Please sign in to comment.