Create a virtual environment
Open the Terminal and create a python virtual environment.
Terminal
Install libraries
pip install -U openai phidata
Export Environment Variables
export AZURE_OPENAI_API_KEY=*** export AZURE_OPENAI_ENDPOINT=*** export AZURE_OPENAI_MODEL_NAME=*** export AZURE_OPENAI_DEPLOYMENT=*** # Optional: # export AZURE_OPENAI_API_VERSION=***
Run azure Agent
python cookbook/providers/azure_openai/basic.py
Was this page helpful?