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.
git clone https://github.com/Promptly-Technologies-LLC/openai-assistants-python-quickstart.git
cd openai-assistants-python-quickstart
uv venv
uv pip install -r pyproject.toml
uv run uvicorn main:app --host 0.0.0.0 --port 8000 --reload
4. Navigate to http://localhost:8000.
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.