test: tighten google web search missing key assertion · openclaw/openclaw@d4aaa8f
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -81,9 +81,11 @@ describe("google web search provider", () => {
|
81 | 81 | throw new Error("Expected tool definition"); |
82 | 82 | } |
83 | 83 | |
84 | | -await expect(tool.execute({ query: "OpenClaw docs" })).resolves.toMatchObject({ |
| 84 | +await expect(tool.execute({ query: "OpenClaw docs" })).resolves.toEqual({ |
| 85 | +docs: "https://docs.openclaw.ai/tools/web", |
85 | 86 | error: "missing_gemini_api_key", |
86 | | -message: expect.stringContaining("use web_fetch for a specific URL or the browser tool"), |
| 87 | +message: |
| 88 | +"web_search (gemini) needs an API key. Set GEMINI_API_KEY in the Gateway environment, configure plugins.entries.google.config.webSearch.apiKey, or reuse models.providers.google.apiKey. If you do not want to configure a search API key, use web_fetch for a specific URL or the browser tool for interactive pages.", |
87 | 89 | }); |
88 | 90 | }); |
89 | 91 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。