Streaming Chat Bot made with fast-api and Websocket.
This project is a demo version, there are many bugs inside it. based on each phase my skills will grow and i will become better.
☑️ Demo Mode Completed.
- You can choose a model based on your preference.
- the LLM has been called in streaming mode
- Websocket has been used for this chat-bot; so you can send events
- each chat session is stored inside postgresql, including messages.
- temperature, max_token, stop_sequence has been set.
- Token Usage per conversation is tracked.
- Websocket manager Handles Multiple users streaming at once.
- Built-in logic to handle
max Token hits. - a responsive Frontend.
- Install Excalidraw extension via your IDE
- Open
excalidrawfolder and read the files.
- clone the repo
- pip install -e .
- Start the FastAPI backend:
uvicorn app.main:app --reload - In a second terminal, launch the Flet app:
python -m app.ui.flet_app
SSE is made for one line communication, user can't send events when Ai is mid response; which means no Stop Generating which is bad.