feat: add Kagi as web search engine provider (#1331)
This commit is contained in:
13
README.md
13
README.md
@@ -620,16 +620,25 @@ Therefore, I have adopted Cursor’s method to implement planning applying. For
|
||||
|
||||
## Web Search Engines
|
||||
|
||||
Avante's tools include some web search engines, currently support [tavily](https://tavily.com/), [serpapi](https://serpapi.com/), [searchapi](https://www.searchapi.io/) and google's [programmable search engine](https://developers.google.com/custom-search/v1/overview). The default is tavily, and can be changed through configuring `Config.web_search_engine.provider`:
|
||||
Avante's tools include some web search engines, currently support:
|
||||
|
||||
- [tavily](https://tavily.com/)
|
||||
- [serpapi](https://serpapi.com/)
|
||||
- [searchapi](https://www.searchapi.io/)
|
||||
- google's [programmable search engine](https://developers.google.com/custom-search/v1/overview)
|
||||
- [kagi](https://help.kagi.com/kagi/api/search.html)
|
||||
|
||||
The default is tavily, and can be changed through configuring `Config.web_search_engine.provider`:
|
||||
|
||||
```lua
|
||||
web_search_engine = {
|
||||
provider = "tavily", -- tavily, serpapi, searchapi or google
|
||||
provider = "tavily", -- tavily, serpapi, searchapi, google or kagi
|
||||
}
|
||||
```
|
||||
|
||||
You need to set the environment variable `TAVILY_API_KEY` , `SERPAPI_API_KEY`, `SEARCHAPI_API_KEY` to use tavily or serpapi or searchapi.
|
||||
To use google, set the `GOOGLE_SEARCH_API_KEY` as the [API key](https://developers.google.com/custom-search/v1/overview), and `GOOGLE_SEARCH_ENGINE_ID` as the [search engine](https://programmablesearchengine.google.com) ID.
|
||||
To use kagi, set the `KAGI_API_KEY` as the [API Token](https://kagi.com/settings?p=api).
|
||||
|
||||
## Disable Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user