avante
This commit is contained in:
@ -1,44 +1,44 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"yetone/avante.nvim",
|
||||||
build = "make",
|
build = "make",
|
||||||
enable = true,
|
enable = true,
|
||||||
commit = "f9aa754", -- See g/avante-goose-users/c/h1eEYWBDW3k/m/6RGK2B89AAAJ
|
branch = "working",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
-- Add vintharas/avante-goose.nvim as a dependecy to avante.nvim
|
-- Add vintharas/avante-goose.nvim as a dependecy to avante.nvim
|
||||||
-- That'll ensure that you'll load avante-goose when you load avante.
|
-- That'll ensure that you'll load avante-goose when you load avante.
|
||||||
{
|
{
|
||||||
"vintharas/avante-goose.nvim",
|
"vintharas/avante-goose.nvim",
|
||||||
url = "sso://user/vintharas/avante-goose.nvim",
|
url = "sso://user/vintharas/avante-goose.nvim",
|
||||||
cond = use_google(),
|
cond = use_google(),
|
||||||
opts = {
|
opts = {
|
||||||
-- Add your options here
|
-- Add your options here
|
||||||
-- These are the defaults
|
-- These are the defaults
|
||||||
auto_start_backend = true, -- Whether to automatically start go/devai-api-http-proxy. If false you can use :AvanteGooseServerStart to start the server
|
auto_start_backend = true, -- Whether to automatically start go/devai-api-http-proxy. If false you can use :AvanteGooseServerStart to start the server
|
||||||
auto_start_silent = true, -- Whether to have a silent auto start (don't log status messages)
|
auto_start_silent = true, -- Whether to have a silent auto start (don't log status messages)
|
||||||
model = 'goose-v3.5-s', -- Select model from go/goose-models.
|
model = "goose-v3.5-s", -- Select model from go/goose-models.
|
||||||
temperature = 0.1, -- Model temperature
|
temperature = 0.1, -- Model temperature
|
||||||
max_decoder_steps = 8192, -- Maximum decoder steps (This affects the token limit of the output. More decoder steps -> higher limit in output tokens)
|
max_decoder_steps = 8192, -- Maximum decoder steps (This affects the token limit of the output. More decoder steps -> higher limit in output tokens)
|
||||||
endpoint = 'http://localhost:8080/predict', -- Endpoint to start/listen to go/devai-api-http-proxy
|
endpoint = "http://localhost:8080/predict", -- Endpoint to start/listen to go/devai-api-http-proxy
|
||||||
debug = false, -- Enables debug mode (outputs lots of logs for troubleshooting issues)
|
debug = false, -- Enables debug mode (outputs lots of logs for troubleshooting issues)
|
||||||
debug_backend = false, -- Whether to start the backend in debug mode. This logs backend output information under stdpath('cache')/devai-http-wrapper.log
|
debug_backend = false, -- Whether to start the backend in debug mode. This logs backend output information under stdpath('cache')/devai-http-wrapper.log
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
provider = "goose", -- Select goose as provider
|
provider = "goose", -- Select goose as provider
|
||||||
vendors = {}, -- Makes sure there's a vendors table
|
vendors = {}, -- Makes sure there's a vendors table
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- Load provider from the plugin
|
-- Load provider from the plugin
|
||||||
opts.vendors["goose"] = require("avante-goose").getProvider()
|
opts.vendors["goose"] = require("avante-goose").getProvider()
|
||||||
require("avante").setup(opts)
|
require("avante").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user