Add SSE streaming endpoint + cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user