https://github.com/concaption/fastgpt
A FastAPI based version of GPT using asynchronous requests for improved performance
https://github.com/concaption/fastgpt
fastapi gpt openai python
Last synced: 7 months ago
JSON representation
A FastAPI based version of GPT using asynchronous requests for improved performance
- Host: GitHub
- URL: https://github.com/concaption/fastgpt
- Owner: concaption
- Created: 2023-12-05T08:54:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T10:27:20.000Z (over 2 years ago)
- Last Synced: 2025-04-28T11:16:54.304Z (12 months ago)
- Topics: fastapi, gpt, openai, python
- Language: CSS
- Homepage:
- Size: 197 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastGPT
*A FastAPI based version of GPT using asynchronous requests for improved performance*
[](https://codespaces.new/concaption/FastGPT)
FastGPT a high performance, customizable GPT chat application built with FastAPI and OpenAI's API. It implements several features essential to providing an excellent user experience, in addition to performance, and features a simple frontend UI built with HTML, CSS, and JavaScript
## Features
- 📝 Full conversation history functionality
- 🤖 Chat with the GPT-3.5 & GPT-4 models
- 🧰 Change system message in realtime from UI
- 💬 Real-time response character streaming functionality
- 🧩 Markdown support in both user and assistant messages
- 🎨 Syntax highligting for code blocks with automatic language detection
- ⚙️ Automatic scrolling with new messages, cancellable by scrolling up

## Usage
```bash
git clone https://github.com/concaption/FastGPT.git
cd FastGPT
cp .env.example .env
# Edit .env file with your OpenAI API key
make setup
make run
```
or
```bash
git clone https://github.com/concaption/FastGPT.git
cd FastGPT
cp .env.example .env
# Edit .env file with your OpenAI API key
pip install -r requirements.txt
uvicorn app:app --reload
```