Add SSE streaming endpoint + cleanup

This commit is contained in:
clawd
2026-01-27 17:49:03 -08:00
parent 2a16dca469
commit afd2336540
17 changed files with 196 additions and 8037 deletions

View File

@@ -40,6 +40,7 @@ If `ADMIN_TOKEN` is not set, the server runs in open mode (dev).
- `GET /v1/chats/:chatId`
- `POST /v1/chats/:chatId/messages`
- `POST /v1/chat-completions`
- `POST /v1/chat-completions/stream` (SSE)
`POST /v1/chat-completions` body example:
@@ -58,7 +59,7 @@ If `ADMIN_TOKEN` is not set, the server runs in open mode (dev).
```
## Next steps (planned)
- SSE streaming (`/v1/chat-completions:stream`)
- Better streaming protocol compatibility (OpenAI-style chunks + cancellation)
- Tool/function calling normalization
- User accounts + per-device API keys
- Postgres support + migrations for prod