mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:00:43 +00:00
test: accept current web search reasoning floor
This commit is contained in:
@@ -451,8 +451,8 @@ const hasWebSearch = tools.some((tool) => tool?.type === "web_search" || (tool?.
|
||||
if (!hasWebSearch) {
|
||||
throw new Error(`success request did not include web_search. Body: ${JSON.stringify(success.body)}`);
|
||||
}
|
||||
if (success.body.reasoning?.effort !== "low") {
|
||||
throw new Error(`expected reasoning.effort low with web_search, got ${JSON.stringify(success.body.reasoning)}`);
|
||||
if (success.body.reasoning?.effort === "minimal") {
|
||||
throw new Error(`expected web_search request to avoid minimal reasoning, got ${JSON.stringify(success.body.reasoning)}`);
|
||||
}
|
||||
NODE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user