From 41e2394c9c874235206ba8bc14a20d45b1575ee4 Mon Sep 17 00:00:00 2001 From: Ismael G Serrano <50013692+IsmaelGSerrano@users.noreply.github.com> Date: Thu, 18 May 2023 06:05:53 +0200 Subject: [PATCH] Fix AzureOpenAI embeddings documentation example. model -> deployment (#4389) # Documentation for Azure OpenAI embeddings model - OPENAI_API_VERSION environment variable is needed for the endpoint - The constructor does not work with model, it works with deployment. I fixed it in the notebook. (This is my first contribution) ## Who can review? @hwchase17 @agola Co-authored-by: Harrison Chase --- docs/modules/models/text_embedding/examples/azureopenai.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/models/text_embedding/examples/azureopenai.ipynb b/docs/modules/models/text_embedding/examples/azureopenai.ipynb index 0f09f1e9..eeea1867 100644 --- a/docs/modules/models/text_embedding/examples/azureopenai.ipynb +++ b/docs/modules/models/text_embedding/examples/azureopenai.ipynb @@ -35,7 +35,7 @@ "source": [ "from langchain.embeddings import OpenAIEmbeddings\n", "\n", - "embeddings = OpenAIEmbeddings(model=\"your-embeddings-deployment-name\")" + "embeddings = OpenAIEmbeddings(deployment=\"your-embeddings-deployment-name\")" ] }, {