test: tighten perplexity missing key assertion · openclaw/openclaw@3bf0d10
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/perplexity/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,9 +20,11 @@ describe("perplexity web search provider", () => {
|
20 | 20 | throw new Error("Expected tool definition"); |
21 | 21 | } |
22 | 22 | |
23 | | -await expect(tool.execute({ query: "OpenClaw docs" })).resolves.toMatchObject({ |
| 23 | +await expect(tool.execute({ query: "OpenClaw docs" })).resolves.toEqual({ |
24 | 24 | error: "missing_perplexity_api_key", |
25 | | -message: expect.stringContaining("use web_fetch for a specific URL or the browser tool"), |
| 25 | +message: |
| 26 | +"web_search (perplexity) needs an API key. Set PERPLEXITY_API_KEY or OPENROUTER_API_KEY in the Gateway environment, or configure tools.web.search.perplexity.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.", |
| 27 | +docs: "https://docs.openclaw.ai/tools/web", |
26 | 28 | }); |
27 | 29 | }, |
28 | 30 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。