[loop-generated] [feature] SSE streaming for AI responses #444

Closed
opened 2026-03-19 18:11:15 +00:00 by Timmy · 1 comment
Owner

What

SSE endpoint for token-by-token AI response streaming.

Acceptance criteria

  • SSE endpoint yielding {"token": "..."} events
  • Final {"done": true} event
  • Dashboard JS renders incrementally
  • Unit tests

Files

  • src/timmy/serve.py or src/timmy/api/
  • src/dashboard/static/js/
  • tests/
## What SSE endpoint for token-by-token AI response streaming. ## Acceptance criteria - SSE endpoint yielding `{"token": "..."}` events - Final `{"done": true}` event - Dashboard JS renders incrementally - Unit tests ## Files - `src/timmy/serve.py` or `src/timmy/api/` - `src/dashboard/static/js/` - `tests/`
Author
Owner

Already Implemented ✓

SSE streaming for AI responses already exists in src/dashboard/routes/chat_api_v1.py:

  • POST /api/v1/chat — Streaming SSE chat response
  • Uses StreamingResponse with media_type="text/event-stream"
  • Includes event generator with error handling
  • Token-by-token streaming via the agentic loop

The endpoint is already live in the dashboard chat API. Closing as complete.

## Already Implemented ✓ SSE streaming for AI responses already exists in `src/dashboard/routes/chat_api_v1.py`: - `POST /api/v1/chat` — Streaming SSE chat response - Uses `StreamingResponse` with `media_type="text/event-stream"` - Includes event generator with error handling - Token-by-token streaming via the agentic loop The endpoint is already live in the dashboard chat API. Closing as complete.
Timmy closed this issue 2026-03-19 18:37:24 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#444