embedding: AzureOpenAIEmbedding = AzureOpenAIEmbedding( model=embedding_model.api_model, api_key=embedding_model.api_key, api_version=embedding_model.api_version, azure_endpoint=embedding_model.api_base, azure_deployment=embedding_model.api_deployment, )
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version=2023-05-15\ -H 'Content-Type: application/json' \ -H 'api-key: YOUR_API_KEY' \ -d '{"input": "Sample Document goes here"}'