You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+29
Original file line number
Diff line number
Diff line change
@@ -513,6 +513,35 @@ Avante provides a set of default providers, but users can also create their own
513
513
514
514
For more information, see [Custom Providers](https://github.com/yetone/avante.nvim/wiki/Custom-providers)
515
515
516
+
## Web Search Engines
517
+
518
+
Avante's tools include some web search engines, currently support [tavily](https://tavily.com/) and [serpapi](https://serpapi.com/). The default is tavily, and can be changed through configuring `Config.web_search_engine.provider`:
519
+
520
+
```lua
521
+
web_search_engine = {
522
+
provider = "tavily", -- tavily or serpapi
523
+
}
524
+
```
525
+
526
+
You need to set the environment variable `TAVILY_API_KEY` or `SERPAPI_API_KEY` to use tavily or serpapi.
527
+
528
+
## Disable Tools
529
+
530
+
Avante enables tools by default, but some LLM models do not support tools. You can disable tools by setting `disable_tools = true` for the provider. For example:
531
+
532
+
```lua
533
+
{
534
+
claude= {
535
+
endpoint="https://api.anthropic.com",
536
+
model="claude-3-5-sonnet-20241022",
537
+
timeout=30000, -- Timeout in milliseconds
538
+
temperature=0,
539
+
max_tokens=4096,
540
+
disable_tools=true, -- disable tools!
541
+
},
542
+
}
543
+
```
544
+
516
545
## Custom prompts
517
546
518
547
By default, `avante.nvim` provides three different modes to interact with: `planning`, `editing`, and `suggesting`, followed with three different prompts per mode.
0 commit comments