fix(web-search): support Exa baseUrl

This commit is contained in:
Peter Steinberger
2026-05-02 06:06:33 +01:00
parent 8819f258cc
commit 12342ed0e8
7 changed files with 137 additions and 14 deletions

View File

@@ -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>