feat: v0.8.3 工作空间切换链路根治 · 思考强度扩档 — 启动TDZ连锁/继承丢数/回显滞后三修复 · xhigh+true档位单源 · 安全防线ready后注册 · 2217 用例全量回归 + 生产模式E2E
This commit is contained in:
@@ -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 输出预算 —— 预算过小时显式告警
|
||||
|
||||
Reference in New Issue
Block a user