You can deploy your Azure OpenAI assistant with Chainlit using this template.
Streaming | Files | Code Interpreter | File Search | Voice |
---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ✅ |
-
Provision an Azure OpenAI resource and create a deployment for gpt-4 (Model number:- 0125). Assistants API (Preview) is only supported in certain regions and models. In addition, only certain API versions are supported
-
Update .env.sample with the correct Azure OpenAI configuration (leave OPENAI_ASSISTANT_ID blank for now, we will create it in step 4). Rename ".env.sample" to ".env".
-
Install the required Python modules
pip install -r requirements.txt
-
Create an Assistant
& python create_assistant.py
Copy the ID value from the output "Assistant created with ID: X" and update .env OPENAI_ASSISTANT_ID with the value of X.
-
Run chainlit
chainlit run app.py -w