First time try Azure OpenAI to make API call on python
create new deployment in Azure OpenAI Studio and set up deploy model to make API calls.
It need to install the necessary libraries and run the following command in cmd.
pip install -r requirements.txt
Create .env file for API Keys.
_A .env file is used to store environment variables, which can be accessed by your application to keep sensitive information like API keys secure and out of your source code. _
Try to run the ValidateSetup.py
There have a error about rate limit, the reason about this problem is because of Azure Student Account Quotas has limit 1000 tokens.
Luckily ,I find a free API Key on GitHub and active successfully
Top comments (0)