mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:30:43 +00:00
fix(web-search): support Exa baseUrl
This commit is contained in:
@@ -38,6 +38,7 @@ extraction (highlights, text, summaries).
|
||||
config: {
|
||||
webSearch: {
|
||||
apiKey: "exa-...", // optional if EXA_API_KEY is set
|
||||
baseUrl: "https://api.exa.ai", // optional; OpenClaw appends /search
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -56,6 +57,14 @@ extraction (highlights, text, summaries).
|
||||
**Environment alternative:** set `EXA_API_KEY` in the Gateway environment.
|
||||
For a gateway install, put it in `~/.openclaw/.env`.
|
||||
|
||||
## Base URL override
|
||||
|
||||
Set `plugins.entries.exa.config.webSearch.baseUrl` when Exa search requests
|
||||
should go through a compatible proxy or alternate Exa endpoint. OpenClaw
|
||||
normalizes bare hosts by prepending `https://` and appends `/search` unless the
|
||||
path already ends there. The resolved endpoint is included in the search cache
|
||||
key, so results from different Exa endpoints are not shared.
|
||||
|
||||
## Tool parameters
|
||||
|
||||
<ParamField path="query" type="string" required>
|
||||
|
||||
@@ -170,7 +170,7 @@ API-backed providers first:
|
||||
5. **Kimi** -- `KIMI_API_KEY` / `MOONSHOT_API_KEY` or `plugins.entries.moonshot.config.webSearch.apiKey` (order 40)
|
||||
6. **Perplexity** -- `PERPLEXITY_API_KEY` / `OPENROUTER_API_KEY` or `plugins.entries.perplexity.config.webSearch.apiKey` (order 50)
|
||||
7. **Firecrawl** -- `FIRECRAWL_API_KEY` or `plugins.entries.firecrawl.config.webSearch.apiKey` (order 60)
|
||||
8. **Exa** -- `EXA_API_KEY` or `plugins.entries.exa.config.webSearch.apiKey` (order 65)
|
||||
8. **Exa** -- `EXA_API_KEY` or `plugins.entries.exa.config.webSearch.apiKey`; optional `plugins.entries.exa.config.webSearch.baseUrl` overrides the Exa endpoint (order 65)
|
||||
9. **Tavily** -- `TAVILY_API_KEY` or `plugins.entries.tavily.config.webSearch.apiKey` (order 70)
|
||||
|
||||
Key-free fallbacks after that:
|
||||
|
||||
Reference in New Issue
Block a user