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 <hw.chase.17@gmail.com>
docker
Ismael G Serrano 1 year ago committed by GitHub
parent a4ac006658
commit 41e2394c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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\")"
]
},
{

Loading…
Cancel
Save