fix(docs): deprecated configurations claude (#2168)
This commit is contained in:
12
README.md
12
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:
|
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
|
||||||
temperature = 0,
|
|
||||||
max_tokens = 4096,
|
|
||||||
disable_tools = true, -- disable tools!
|
disable_tools = true, -- disable tools!
|
||||||
},
|
extra_request_body = {
|
||||||
|
temperature = 0,
|
||||||
|
max_tokens = 4096,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user