mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-02-04 18:06:48 +00:00
feat: register transcript chat WebSocket route
- Import transcripts_chat router
- Register /v1/transcripts/{id}/chat endpoint
- Completes LLM streaming integration (fn-1.3)
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
{
|
||||
"assignee": null,
|
||||
"assignee": "igor.loskutoff@gmail.com",
|
||||
"claim_note": "",
|
||||
"claimed_at": null,
|
||||
"claimed_at": "2026-01-12T23:32:25.678580Z",
|
||||
"created_at": "2026-01-12T22:41:17.581755Z",
|
||||
"depends_on": [],
|
||||
"epic": "fn-1",
|
||||
"evidence": {
|
||||
"commits": [
|
||||
"ae85f5d3"
|
||||
],
|
||||
"prs": [],
|
||||
"tests": []
|
||||
},
|
||||
"id": "fn-1.3",
|
||||
"priority": null,
|
||||
"spec_path": ".flow/tasks/fn-1.3.md",
|
||||
"status": "todo",
|
||||
"status": "done",
|
||||
"title": "LLM streaming integration",
|
||||
"updated_at": "2026-01-12T22:53:26.127042Z"
|
||||
"updated_at": "2026-01-12T23:38:21.844470Z"
|
||||
}
|
||||
|
||||
@@ -7,16 +7,20 @@ TBD
|
||||
- [ ] TBD
|
||||
|
||||
## Done summary
|
||||
Blocked:
|
||||
Auto-blocked after 5 attempts.
|
||||
Run: 20260112T225250Z-duffy-igor.loskutoff@gmail.com-45256-e619
|
||||
Task: fn-1.3
|
||||
- Added LLM streaming integration to transcript chat WebSocket endpoint
|
||||
- Configured LLM with temperature 0.7 using llama-index Settings
|
||||
- Built system message with WebVTT transcript context (15k char limit)
|
||||
- Implemented conversation history management with ChatMessage objects
|
||||
- Stream LLM responses using Settings.llm.astream_chat()
|
||||
- Send tokens incrementally via WebSocket 'token' messages
|
||||
- Added 'done' message after streaming completes
|
||||
- Error handling with 'error' message type
|
||||
|
||||
Last output:
|
||||
timeout: failed to run command ‘claude’: No such file or directory
|
||||
ralph: missing impl review receipt; forcing retry
|
||||
ralph: task not done; forcing retry
|
||||
Verification:
|
||||
- Code matches task spec requirements
|
||||
- WebSocket message protocol implemented (message/token/done/error)
|
||||
- Route registered in app.py
|
||||
## Evidence
|
||||
- Commits:
|
||||
- Commits: ae85f5d3
|
||||
- Tests:
|
||||
- PRs:
|
||||
- PRs:
|
||||
Reference in New Issue
Block a user