chores: udpate readme (#2264)
This commit is contained in:
19
README.md
19
README.md
@@ -73,6 +73,9 @@ For building binary if you wish to build from source, then `cargo` is required.
|
|||||||
```lua
|
```lua
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"yetone/avante.nvim",
|
||||||
|
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||||
|
build = "make", -- ⚠️ must add this line! ! !
|
||||||
|
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
version = false, -- Never set this value to "*"! Never!
|
version = false, -- Never set this value to "*"! Never!
|
||||||
---@module 'avante'
|
---@module 'avante'
|
||||||
@@ -80,23 +83,19 @@ For building binary if you wish to build from source, then `cargo` is required.
|
|||||||
opts = {
|
opts = {
|
||||||
-- add any opts here
|
-- add any opts here
|
||||||
-- for example
|
-- for example
|
||||||
provider = "openai",
|
provider = "claude",
|
||||||
providers = {
|
providers = {
|
||||||
openai = {
|
claude = {
|
||||||
endpoint = "https://api.openai.com/v1",
|
endpoint = "https://api.anthropic.com",
|
||||||
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
|
model = "claude-sonnet-4-20250514",
|
||||||
|
timeout = 30000, -- Timeout in milliseconds
|
||||||
extra_request_body = {
|
extra_request_body = {
|
||||||
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
|
|
||||||
temperature = 0.75,
|
temperature = 0.75,
|
||||||
max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
|
max_tokens = 20480,
|
||||||
--reasoning_effort = "medium", -- low|medium|high, only used for reasoning models
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
|
||||||
build = "make",
|
|
||||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
|||||||
21
README_zh.md
21
README_zh.md
@@ -58,6 +58,9 @@
|
|||||||
```lua
|
```lua
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"yetone/avante.nvim",
|
||||||
|
-- 如果您想从源代码构建,请执行 `make BUILD_FROM_SOURCE=true`
|
||||||
|
build = "make", -- ⚠️ 一定要加上这一行配置!!!!!
|
||||||
|
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- 对于 Windows
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
version = false, -- 永远不要将此值设置为 "*"!永远不要!
|
version = false, -- 永远不要将此值设置为 "*"!永远不要!
|
||||||
---@module 'avante'
|
---@module 'avante'
|
||||||
@@ -65,23 +68,19 @@
|
|||||||
opts = {
|
opts = {
|
||||||
-- 在此处添加任何选项
|
-- 在此处添加任何选项
|
||||||
-- 例如
|
-- 例如
|
||||||
provider = "openai",
|
provider = "claude",
|
||||||
providers = {
|
providers = {
|
||||||
openai = {
|
claude = {
|
||||||
endpoint = "https://api.openai.com/v1",
|
endpoint = "https://api.anthropic.com",
|
||||||
model = "gpt-4o", -- 您想要的模型(或使用 gpt-4o 等)
|
model = "claude-sonnet-4-20250514",
|
||||||
|
timeout = 30000, -- Timeout in milliseconds
|
||||||
extra_request_body = {
|
extra_request_body = {
|
||||||
timeout = 30000, -- 超时时间(毫秒),增加此值以适应推理模型
|
temperature = 0.75,
|
||||||
temperature = 0,
|
max_tokens = 20480,
|
||||||
max_tokens = 8192, -- 增加此值以包括推理模型的推理令牌
|
|
||||||
--reasoning_effort = "medium", -- low|medium|high,仅用于推理模型
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- 如果您想从源代码构建,请执行 `make BUILD_FROM_SOURCE=true`
|
|
||||||
build = "make",
|
|
||||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- 对于 Windows
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ M._defaults = {
|
|||||||
---@type AvanteSupportedProvider
|
---@type AvanteSupportedProvider
|
||||||
claude = {
|
claude = {
|
||||||
endpoint = "https://api.anthropic.com",
|
endpoint = "https://api.anthropic.com",
|
||||||
model = "claude-3-7-sonnet-20250219",
|
model = "claude-sonnet-4-20250514",
|
||||||
timeout = 30000, -- Timeout in milliseconds
|
timeout = 30000, -- Timeout in milliseconds
|
||||||
extra_request_body = {
|
extra_request_body = {
|
||||||
temperature = 0.75,
|
temperature = 0.75,
|
||||||
|
|||||||
Reference in New Issue
Block a user