mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-02 07:30:08 +00:00
* feat: Add Perplexity Search API as web_search provider * docs fixes * domain_filter validation * address comments * provider-specific options in cache key * add validation for unsupported date filters * legacy fields * unsupported_language guard * cache key matches the request's precedence order * conflicting_time_filters guard * unsupported_country guard * invalid_date_range guard * pplx validate for ISO 639-1 format * docs: add Perplexity Search API changelog entry * unsupported_domain_filter guard --------- Co-authored-by: Shadow <[email protected]>
1.2 KiB
1.2 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| Brave Search API setup for web_search |
|
Brave Search |
Brave Search API
Hanzo Bot uses Brave Search as the default provider for web_search.
Get an API key
- Create a Brave Search API account at https://brave.com/search/api/
- In the dashboard, choose the Data for Search plan and generate an API key.
- Store the key in config (recommended) or set
BRAVE_API_KEYin the Gateway environment.
Config example
{
tools: {
web: {
search: {
provider: "brave",
apiKey: "BRAVE_API_KEY_HERE",
maxResults: 5,
timeoutSeconds: 30,
},
},
},
}
Notes
- The Data for AI plan is not compatible with
web_search. - Brave provides paid plans; check the Brave API portal for current limits.
- Brave Terms include restrictions on some AI-related uses of Search Results. Review the Brave Terms of Service and confirm your intended use is compliant. For legal questions, consult your counsel.
See Web tools for the full web_search configuration.