zhizhi/persona-studio/frontend
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
..
chat.html feat: add persona-studio Phase 1 skeleton + Phase 2 frontend 2026-03-10 04:42:57 +00:00
chat.js fix: 重写 streamApiKeyReply 为 SSE 流式调用,与 docs/index.html 一致 2026-03-11 07:37:52 +00:00
index.html refactor: address code review feedback - fix normalizeApiBase regex, improve error code propagation 2026-03-10 12:53:19 +00:00
style.css feat: upgrade Persona Studio login to support API Key auto-detect model mode 2026-03-10 12:06:23 +00:00