 hughhuangandClaude Sonnet 4.5
|
0c5655af5b
|
feat: 实现伪流式接口,实时展示 LLM 执行步骤
- 新增 StreamingStepAdvisor 捕获每个执行步骤(工具调用、响应等)
- 在 ChatService 中实现 chatStreamWithTools 方法
- 使用 SSE 实时推送执行步骤到前端
- 新增 /api/chat/stream-with-tools 接口
- 创建测试页面 stream-test.html 展示实时步骤
功能特性:
- 实时显示用户消息
- 实时显示工具调用(工具名称、参数)
- 实时显示工具响应
- 实时显示 AI 文本响应
- 支持错误处理和显示
访问地址:http://localhost:8080/stream-test.html
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:15:37 +08:00 |
|