Example

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install -U openai phidata
3

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=***
4

Run azure Agent

python cookbook/providers/azure_openai/basic.py

Information