Skip to content

Promptly-Technologies-LLC/openai-assistants-python-quickstart

Repository files navigation

OpenAI Assistants API Quickstart with Python, Jinja2, and FastAPI

A quick-start template using the OpenAI Assistants API with Python, Jinja2, and FastAPI.

Note: This repository is still under construction; only basic chat is currently functional.

Quickstart Setup

1. Clone repo

git clone https://github.com/Promptly-Technologies-LLC/openai-assistants-python-quickstart.git
cd openai-assistants-python-quickstart

2. Install dependencies

uv venv
uv pip install -r pyproject.toml

3. Run the FastAPI server

uv run uvicorn main:app --host 0.0.0.0 --port 8000 --reload

4. Navigate to http://localhost:8000.

5. Set your OpenAI API key and create an assistant in the GUI

If your OPENAI_API_KEY or ASSISTANT_ID are not set, you will be redirected to the setup page where you can set them. (The values will be saved in a .env file in the root of the project.) Once set, you will be redirected to the home page and can begin a chat session.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published