fix(canvas): Agent 模型调用 - 修复关闭思考被误判为开启

This commit is contained in:
ddcat666
2026-09-30 14:39:02 +08:00
parent 4c0aa682a5
commit eb13f73626
3 changed files with 43 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ async function run() {
description: tool.description,
parameters: tool.parameters,
})),
thinkingLevel: options?.reasoning,
thinkingLevel: options?.reasoning ?? "off",
}, options?.signal);
for (const text of result.steeringMessages ?? []) {
await session.steer(text);