Hi all,
I would like to use Weaviate with Azure Open AI. In my docker-compose file, I specify the “AZURE_APIKEY: $AZURE_APIKEY”
And in my schema I have defined DeploymentId and RessourceName
"moduleConfig": {
"text2vec-openai": {
"model": "ada",
"resourceName": "XXX",
"deploymentId": "text-embedding-ada-002",
}
},
Yet, when I use this client:
client = weaviate.Client(
url=weaviate_url,
auth_client_secret=weaviate.auth.AuthApiKey(api_key=weaviate_secret_key),
additional_headers={
“X-Azure-Api-Key”: azure_openai_key,
},
)
I get this error: API Key: no api key found neither in request header: X-Openai-Api-Key nor in environment variable under OPENAI_APIKEY’
How do I need to indicate that I am using azure so that when I make a request with the client to insert data, it is actually recognizing the right key?
I would highly appreciate any help as I got stuck for this on several days now
Many thanks!