IOS-H0-01 P1 | AI 对话 SSE 流式接收 + DeepSeek V4 Pro 思考过程展示 #38
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
当前
AIChatPage使用一次性POST /messages同步等待完整回复。后端改为 SSE 流式输出后,iOS 需要适配流式接收,并展示 V4 Pro 的思考过程。需求
RagChatService新增sendMessageStream()—URLSession+AsyncBytes逐行读 SSEAIChatViewModel适配流式:thinkingContent逐字追加,思考结束后追加contentAIChatPage新增思考过程气泡 — 灰色斜体,可展开/折叠数据格式
关联
iOS 侧完成 (2026-06-06)
改动
APIClient新增getToken()方法RagChatService新增sendMessageStream()— URLSession bytes 逐行读 SSEAIChatViewModelsend()改用流式:thinking + content 逐字更新 placeholder messageAIMessage新增thinkingContent+isStreaming字段AIChatPage思考过程气泡 — 灰色斜体 + brain 图标 + streaming 指示器状态
✅ iOS 侧完成,等待后端部署后联调。
关闭
已被 M-CHAT 里程碑替代。ChatScope 系统已完整实现了 AI 会话的 scope 绑定和 SSE 流式输出。