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:
- https://blog.baeke.info/2024/02/08/a-look-at-the-azure-openai-assistants-api/
- https://blog.baeke.info/2024/02/09/using-tools-with-the-azure-openai-assistants-api/
- https://blog.baeke.info/2024/02/10/retrieval-with-the-azure-openai-assistants-api/
- https://blog.baeke.info/2024/02/11/fast-chat-bot-creation-with-the-openai-assistants-api-and-the-microsoft-bot-framework-sdk/
Enjoy!