mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 13:31:04 +00:00
Better avante config
This commit is contained in:
parent
d0940f2b4d
commit
43f6704416
1 changed files with 6 additions and 6 deletions
|
|
@ -18,20 +18,20 @@ return {
|
||||||
claude = {
|
claude = {
|
||||||
endpoint = "https://api.anthropic.com",
|
endpoint = "https://api.anthropic.com",
|
||||||
model = "claude-3-5-sonnet-20241022",
|
model = "claude-3-5-sonnet-20241022",
|
||||||
|
timeout = 30000, -- Timeout in milliseconds
|
||||||
extra_request_body = {
|
extra_request_body = {
|
||||||
temperature = 0,
|
temperature = 0.3, -- Slightly increased for better balance
|
||||||
max_tokens = 4096,
|
max_tokens = 2048, -- Reduced to save costs while still being effective
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openai = {
|
openai = {
|
||||||
endpoint = "https://api.openai.com/v1",
|
endpoint = "https://api.openai.com/v1",
|
||||||
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
|
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
|
||||||
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
|
timeout = 30000,
|
||||||
extra_request_body = {
|
extra_request_body = {
|
||||||
temperature = 0,
|
temperature = 0.3,
|
||||||
max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
|
max_completion_tokens = 2048, -- Reduced to save costs
|
||||||
}
|
}
|
||||||
--reasoning_effort = "medium", -- low|medium|high, only used for reasoning models
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue