Sample code for Azure OpenAI Assistants API

Check out the following blog post: https://blog.baeke.info/2024/02/08/a-look-at-the-azure-openai-assistants-api/

To run this code, put an env file in the root of the project with the following content:

AZURE_OPENAI_API_KEY=YOUR_API_KEY
AZURE_OPENAI_ENDPOINT=https://YOUR_OPENAI_ENDPOINT
AZURE_OPENAI_API_VERSION=2024-02-15-preview

You will need to install the following packages:

  • openai
  • python-dotenv
  • pillow

To learn more, check out the following resources:

Enjoy!