mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
feat(channels): add BlockStreamer for progressive message delivery
- Add BlockStreamer class to split streaming responses into multiple messages - Configure block streaming with min/max chars and idle coalescing - Integrate into ChannelBase when blockStreaming: 'on' - Add comprehensive test coverage (16 tests) This improves UX by delivering completed paragraphs as separate messages instead of waiting for the full response. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
f7979aa902
commit
3d24a9c3fe
6 changed files with 375 additions and 3 deletions
|
|
@ -5,5 +5,5 @@
|
|||
"rootDir": "src"
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
"exclude": ["node_modules", "dist", "src/**/*.test.ts"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue