diff --git a/README.md b/README.md index cc09e59..a3b74b6 100644 --- a/README.md +++ b/README.md @@ -965,15 +965,17 @@ Environment variables required for providers: 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: ```lua -{ +providers = { claude = { endpoint = "https://api.anthropic.com", - model = "claude-3-5-sonnet-20241022", + model = "claude-sonnet-4-20250514", timeout = 30000, -- Timeout in milliseconds - temperature = 0, - max_tokens = 4096, disable_tools = true, -- disable tools! - }, + extra_request_body = { + temperature = 0, + max_tokens = 4096, + } + } } ``` diff --git a/lua/avante/config.lua b/lua/avante/config.lua index 9ee0d09..8b3adbe 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -638,7 +638,7 @@ function M.setup(opts) opts.providers[k] = v Utils.warn( string.format( - "[DEPRACATED] The configuration of `%s` should be placed in `providers.%s`. For detailed migration instructions, please visit: %s", + "[DEPRECATED] The configuration of `%s` should be placed in `providers.%s`. For detailed migration instructions, please visit: %s", k, k, migration_url