Like in Daniel Fang's comment, the problem was indeed an environment varibale problem: my AZURE_OPENAI_KEY was empty. All other parameters were correctly filled.
Thanks all for your answers !
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, my problem is that I've deployed a new model from Azure OpenAI (gpt-4o). It perfectly works with API calls or in the playground, but when I deploy it in a webapp, I got the error message "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."
The web deployment works, is active but it can't reply to any prompts.
My Azure OpenAI and App Service ressources are in the same region (France Central)
Any help would be appreciated, thank you
Here my model works in the playground ...
...But it doesn't work anymore on a web application
Like in Daniel Fang's comment, the problem was indeed an environment varibale problem: my AZURE_OPENAI_KEY was empty. All other parameters were correctly filled.
Thanks all for your answers !