test: accept current web search reasoning floor · openclaw/openclaw@b4d1992
steipete
·
2026-04-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -451,8 +451,8 @@ const hasWebSearch = tools.some((tool) => tool?.type === "web_search" || (tool?.
|
451 | 451 | if (!hasWebSearch) { |
452 | 452 | throw new Error(`success request did not include web_search. Body: ${JSON.stringify(success.body)}`); |
453 | 453 | } |
454 | | -if (success.body.reasoning?.effort !== "low") { |
455 | | - throw new Error(`expected reasoning.effort low with web_search, got ${JSON.stringify(success.body.reasoning)}`); |
| 454 | +if (success.body.reasoning?.effort === "minimal") { |
| 455 | + throw new Error(`expected web_search request to avoid minimal reasoning, got ${JSON.stringify(success.body.reasoning)}`); |
456 | 456 | } |
457 | 457 | NODE |
458 | 458 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。