Minimal server
Endpoints
| Method | Path | Description |
|---|---|---|
GET | / | Redirects to /frontend/ |
GET | /health | Health check — returns status and version |
GET | /frontend/ | Built-in chat UI (served from Vite build) |
POST | /chat | Send a message |
POST /chat
Acceptsmultipart/form-data:
| Field | Type | Required | Description |
|---|---|---|---|
query | string | ✓ | User message |
userId | string | ✓ | User identifier |
platform | string | ✓ | Platform namespace (e.g. "web") |
image | file | — | Optional image attachment |
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 fromsrc/langchat/core/ui/dist/. Build it with:
http://localhost:8000/frontend/.
