nvim: switch to claude 3.7
This commit is contained in:
parent
4350cb779b
commit
2f0c6a9eb3
2 changed files with 6 additions and 2 deletions
common/.config/nvim/lua
|
@ -1,5 +1,6 @@
|
|||
return {
|
||||
intelephense = "<#intelephense_key#>",
|
||||
anthropic = "<#anthropic_apikey#>",
|
||||
openai = "<#openai_apikey#>"
|
||||
openai = "<#openai_apikey#>",
|
||||
google = "<#google_search_apikey#>"
|
||||
}
|
||||
|
|
|
@ -9,8 +9,10 @@ return {
|
|||
init = function()
|
||||
local anthropic = require("lib").get_secret("anthropic")
|
||||
local openai = require("lib").get_secret("openai")
|
||||
local google = require("lib").get_secret("google")
|
||||
vim.fn.setenv("ANTHROPIC_API_KEY", anthropic)
|
||||
vim.fn.setenv("OPENAI_API_KEY", openai)
|
||||
vim.fn.setenv("GOOGLE_SEARCH_API_KEY", google)
|
||||
end,
|
||||
opts = {
|
||||
hints = { enabled = false },
|
||||
|
@ -18,10 +20,11 @@ return {
|
|||
auto_suggestions_provider = "claude",
|
||||
claude = {
|
||||
endpoint = "https://api.anthropic.com",
|
||||
model = "claude-3-5-sonnet-20241022",
|
||||
model = "claude-3-7-sonnet-latest",
|
||||
temperature = 0,
|
||||
max_tokens = 4096,
|
||||
},
|
||||
web_search_engine = { provider = "google" },
|
||||
file_selector = {
|
||||
provider = "fzf",
|
||||
provider_opts = {},
|
||||
|
|
Loading…
Add table
Reference in a new issue