mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-25 17:54:10 +08:00
- 测试请求切换到 stream: true + SSE 累积,绕开部分兼容网关 non-streaming 分支对某些模型返回 200 + 空 body 的已知 bug, 行为与真实对话路径一致 - 后端 test_model_verbose 显式设置 Accept-Encoding: identity, 避免压缩协商带来的解码风险 - 用 resp.bytes() + 严格 UTF-8 decode,失败时 fallback 到 lossy 字符串 + 前 200 字节 hex dump,方便定位非 UTF-8 响应 - 展开 reqwest error source 链,响应头与字节数原样返回前端 - 前端结果面板突出显示完整模型回复、固定 prompt 标注、 响应头与 raw bytes hex,方便用户自查上游问题 - scripts/dev-api.js 同步 Rust 后端行为,保证 Web/桌面两侧诊断一致