Forum Discussion
Jiadong_Chen
Apr 15, 2023Copper Contributor
Integrating Azure OpenAI and Azure Speech Services to Create a Voice-Enabled Chatbot with Python
Artificial intelligence (AI) is changing the way businesses operate, and many organizations are looking for ways to leverage AI to improve their operations and gain a competitive advantage. In this b...
ZaffaSte
Apr 18, 2023Copper Contributor
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?
ZaffaSte
Apr 18, 2023Copper Contributor
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. 🙂