/flask-openai-assistant

A simple example to start working with OpenAI Assistant API with Flask.

Primary LanguagePython

OpenAI Assistant with Flask

This project is an example of how to integrate OpenAI Assistant API with a Flask web application.

Installation

  1. Clone the repository:

    git clone https://github.com/jcRisch/flask-openai-assistant.git
  2. Navigate to the project directory:

    cd your-repository
  3. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt

Running the Application

Update config.py file using your OpenAI key.

To run the Flask web application, use the following command:

```bash
flask run
```

Example

Here is an example of how to use this Flask project to integrate OpenAI Assistant API:

Documentation

OpenAI Assistant API Reference can be found here: https://platform.openai.com/docs/api-reference/assistants

Contributors

This repo is provided by Jean-Charles Risch