"Incorrect API key provided" Error when working with Azure OpenAI

Hi both,

Fortunately, I found the solution!

You need to insert the baseURL in your schema definition like so:

                "moduleConfig": {
                    "text2vec-openai": {
                        "baseURL": "https://YOUR_RESSOURCE_NAME.openai.azure.com/",
                        "resourceName": "YOUR_RESSOURCE_NAME",
                        "deploymentId": "text-embedding-ada-002",
                    }
                },

Then it correctly recognizes it as Azure. I think it would be useful for others to update this in the Weaviate Documentation, as this is really not mentioned anywhere.

Good luck!