feat: v0.8.3 工作空间切换链路根治 · 思考强度扩档 — 启动TDZ连锁/继承丢数/回显滞后三修复 · xhigh+true档位单源 · 安全防线ready后注册 · 2217 用例全量回归 + 生产模式E2E
CI / 类型检查 + Lint + 单元测试 (push) Failing after 9m37s
CI / 全量测试 (Electron ABI) (push) Failing after 6m1s
CI / 产物编译验证 (push) Successful in 10m54s

This commit is contained in:
2026-09-08 21:14:59 +08:00
parent 4cd6e997b5
commit 9329df68af
18 changed files with 250 additions and 114 deletions
@@ -698,11 +698,17 @@ export class OllamaAdapter extends BaseAdapter {
if (request.params.thinkingEnabled) {
const modelThinkingSupported = this.cachedThinkingSupport !== false;
if (modelThinkingSupported) {
// v0.8.3: 新增 xhigh / true 档 —— Qwen3 等新模型思考模板原生支持 xhigh
//(旧版仅下发 low/medium/high 时,模板会 500 "Unexpected reasoning effort");
// true = 不指定档位(think: true),由模型思考模板用自身默认档。
// max 语义为"应用内最高档"Ollama 侧同样以布尔 true 放行给服务端默认。
const effortMap: Record<string, string | boolean> = {
low: 'low',
medium: 'medium',
high: 'high',
xhigh: 'xhigh',
max: true,
true: true,
};
body.think = effortMap[request.params.thinkingEffort ?? 'high'] ?? true;
// v0.8.0 P0-3: 思考占用 num_predict 输出预算 —— 预算过小时显式告警