update
This commit is contained in:
parent
fb0d7779dc
commit
95b409d720
10 changed files with 70 additions and 19 deletions
|
|
@ -1,6 +1,7 @@
|
|||
local OLLAMA_TOKEN = os.getenv("OLLAMA_TOKEN")
|
||||
local OPENAI_TOKEN = os.getenv("OPENAI_TOKEN")
|
||||
local GEMINI_TOKEN = os.getenv("GEMINI_TOKEN")
|
||||
local ANTHROPIC_TOKEN = os.getenv("ANTHROPIC_TOKEN")
|
||||
return {
|
||||
{
|
||||
"olimorris/codecompanion.nvim",
|
||||
|
|
@ -30,6 +31,22 @@ return {
|
|||
},
|
||||
})
|
||||
end,
|
||||
anthropic = function()
|
||||
return require("codecompanion.adapters").extend(
|
||||
"anthropic",
|
||||
{
|
||||
name = "anthropic",
|
||||
schema = {
|
||||
model = {
|
||||
default = "claude-3-haiku-20240307",
|
||||
},
|
||||
},
|
||||
env = {
|
||||
api_key = ANTHROPIC_TOKEN,
|
||||
},
|
||||
}
|
||||
)
|
||||
end,
|
||||
openai = function()
|
||||
return require("codecompanion.adapters").extend("openai", {
|
||||
name = "openai",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue