Skip to main content

Minimal server


Endpoints

POST /chat

Accepts multipart/form-data: Example with curl:
Response:

GET /health


Custom prompt in API server


Production server

For production, disable auto-reload and run multiple workers:

Frontend build

The built-in UI is served from src/langchat/core/ui/dist/. Build it with:
The UI is then available at http://localhost:8000/frontend/.

Docker

LangChat can auto-generate a Dockerfile:
Or write your own:

Adding custom routes

Inject your own FastAPI routes alongside LangChat’s: