Azure OpenAI
Azure OpenAI with Python
Use Python to integrate Azure OpenAI with Helicone to log your Azure OpenAI usage.
1
Create an account and generate an API key
Log into Helicone or create an account. Once you have an account, you can generate an API key here.
2
Set up your Helicone API key in your .env file
3
Modify the base URL path and set up authentication
To learn more about the differences between OpenAI and Azure OpenAI, review the OpenAI vs Azure OpenAI documentation.
Make sure to include the api-version
in all of your requests.
Recomendation: Model Override
Click here to learn more about model override
When using Azure, the model displays differently than expected at times. We have implemented logic to parse out the model, but if you want to guarantee your model is consistent, we highly recommend using model override:
Helicone-Model-Override: [MODEL_NAME]
Click here to learn more about model override
4
Start using Azure OpenAI with Helicone
5
Verify your requests in Helicone
With the above setup, any calls to Azure OpenAI will automatically be logged and monitored by Helicone. Review them in your Helicone dashboard.