fix(docs): deprecated configurations claude (#2168)

This commit is contained in:
Lujeni
2025-06-07 20:09:26 +02:00
committed by GitHub
parent 8396cc77e4
commit d3c93c0dab
2 changed files with 8 additions and 6 deletions

View File

@@ -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: 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 ```lua
{ providers = {
claude = { claude = {
endpoint = "https://api.anthropic.com", endpoint = "https://api.anthropic.com",
model = "claude-3-5-sonnet-20241022", model = "claude-sonnet-4-20250514",
timeout = 30000, -- Timeout in milliseconds timeout = 30000, -- Timeout in milliseconds
disable_tools = true, -- disable tools!
extra_request_body = {
temperature = 0, temperature = 0,
max_tokens = 4096, max_tokens = 4096,
disable_tools = true, -- disable tools! }
}, }
} }
``` ```

View File

@@ -638,7 +638,7 @@ function M.setup(opts)
opts.providers[k] = v opts.providers[k] = v
Utils.warn( Utils.warn(
string.format( 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,
k, k,
migration_url migration_url