Forum Discussion
Integrating Azure OpenAI and Azure Speech Services to Create a Voice-Enabled Chatbot with Python
Hi Chen, I forked your solution and I tried to run it replacing endpoint and key with my environment values but it seems it doesn't work, it throws an exception "openai.error.InvalidRequestError: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."
To be sure I replaced the right keys and endpoint I tried to call the OpenAI endpoint from postman and it works fine.
Can you help me, please?
Sorry Jiadong_Chen , I finally found the problem: to make it works you have to change "engine" parameter with the model deployment name (line 56 in app.py file).
Probably adding this parameters in configuration variables in the first lines of code could be a good update.
Hth,
Stefano.
- Jiadong_ChenApr 18, 2023Copper ContributorGood point. 🙂