This is a minimal example of calling an Azure Open AI endpoint from Python.
-
Copy
.env.example
to a file named.env
and add your AOAI credentials to that file. -
Install the python requirements listed in
requirements.txt
pip install -r requirements.txt
-
Run the example:
python minimal-aoai.py