This project is an example of how to integrate OpenAI Assistant API with a Flask web application.
-
Clone the repository:
git clone https://github.com/jcRisch/flask-openai-assistant.git
-
Navigate to the project directory:
cd your-repository
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
Update config.py
file using your OpenAI key.
To run the Flask web application, use the following command:
```bash
flask run
```
Here is an example of how to use this Flask project to integrate OpenAI Assistant API:
OpenAI Assistant API Reference can be found here: https://platform.openai.com/docs/api-reference/assistants
This repo is provided by Jean-Charles Risch