Convert embeddings Deployment Name to variable
john0isaac opened this issue · 0 comments
john0isaac commented
According to Azure OpenAI API embedding docs:
https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#embeddings
The deployment-id is the Azure OpenAI deployment name, not the word "embeddings" which is hardcoded in the URL whenever you make a request to Azure OpenAI.
POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deployment-id}/embeddings?api-version={api-version}
If someone creates an OpenAI deployment with any name other than the word "embeddings" the sample won't work.