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 {
|
return {
|
||||||
intelephense = "<#intelephense_key#>",
|
intelephense = "<#intelephense_key#>",
|
||||||
anthropic = "<#anthropic_apikey#>",
|
anthropic = "<#anthropic_apikey#>",
|
||||||
openai = "<#openai_apikey#>"
|
openai = "<#openai_apikey#>",
|
||||||
|
google = "<#google_search_apikey#>"
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,10 @@ return {
|
||||||
init = function()
|
init = function()
|
||||||
local anthropic = require("lib").get_secret("anthropic")
|
local anthropic = require("lib").get_secret("anthropic")
|
||||||
local openai = require("lib").get_secret("openai")
|
local openai = require("lib").get_secret("openai")
|
||||||
|
local google = require("lib").get_secret("google")
|
||||||
vim.fn.setenv("ANTHROPIC_API_KEY", anthropic)
|
vim.fn.setenv("ANTHROPIC_API_KEY", anthropic)
|
||||||
vim.fn.setenv("OPENAI_API_KEY", openai)
|
vim.fn.setenv("OPENAI_API_KEY", openai)
|
||||||
|
vim.fn.setenv("GOOGLE_SEARCH_API_KEY", google)
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
hints = { enabled = false },
|
hints = { enabled = false },
|
||||||
|
@ -18,10 +20,11 @@ return {
|
||||||
auto_suggestions_provider = "claude",
|
auto_suggestions_provider = "claude",
|
||||||
claude = {
|
claude = {
|
||||||
endpoint = "https://api.anthropic.com",
|
endpoint = "https://api.anthropic.com",
|
||||||
model = "claude-3-5-sonnet-20241022",
|
model = "claude-3-7-sonnet-latest",
|
||||||
temperature = 0,
|
temperature = 0,
|
||||||
max_tokens = 4096,
|
max_tokens = 4096,
|
||||||
},
|
},
|
||||||
|
web_search_engine = { provider = "google" },
|
||||||
file_selector = {
|
file_selector = {
|
||||||
provider = "fzf",
|
provider = "fzf",
|
||||||
provider_opts = {},
|
provider_opts = {},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue