修复: 协议层与体验缺陷六件

- temperature 按模型适配,仅收 1 的模型不再 400
- 流式 error 帧不再被 choices 必填整帧丢弃
- 只读缓存写后失效
- git diff 中文截断撞 UTF-8 边界 panic
- 非视觉模型纯图片直接拒绝
- 全局快捷键补输入焦点守卫
This commit is contained in:
lxy
2026-10-04 16:27:31 +08:00
parent 01d231c39d
commit 7aa0da32f2
28 changed files with 491 additions and 52 deletions
+1
View File
@@ -472,6 +472,7 @@ mod tests {
usage: None,
error: None,
reasoning_content: Some("thought".to_string()),
truncated_by_max_tokens: false,
};
let json = serde_json::to_string(&chunk).unwrap();
assert!(json.contains("reasoning_content"));