Commit Graph

5 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 5f4d084e63 fix: 重写 streamApiKeyReply 为 SSE 流式调用,与 docs/index.html 一致
对比发现 docs/index.html 使用 stream:true + getReader() SSE 流式
读取模型回复(已验证可用),而 persona-studio 使用非流式 JSON 请求
导致模型无法回复。

改动:
- 发送请求时加入 stream: true 参数
- 使用 getReader() + TextDecoder 逐行读取 SSE 响应
- 解析 data: 行提取 delta.content 增量内容
- 实时更新对话气泡(逐字显示+光标)
- CORS 失败时降级到后端代理(非流式)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 07:37:52 +00:00
copilot-swe-agent[bot] ff3ec0d024 fix: 修复模型无法回复用户消息 — 浏览器直连 API + 后端 URL 构造修复
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 03:04:29 +00:00
copilot-swe-agent[bot] 91a08606a2 plan: fix model chat - direct browser-to-API call for API Key mode
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 03:02:17 +00:00
copilot-swe-agent[bot] 6b5174a901 Initial plan for Persona Studio fix and cross-repo brain sync
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 07:13:03 +00:00
copilot-swe-agent[bot] 255b437e38 feat: add persona-studio Phase 1 skeleton + Phase 2 frontend
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 04:42:57 +00:00