WIP add pws llm as a vendor for avante. Queries do not make it to LLM.

This commit is contained in:
whitney 2024-10-08 16:00:00 -07:00
parent c428c30521
commit 1f4b74606c
2 changed files with 13 additions and 3 deletions

View File

@ -52,5 +52,8 @@ sudo apt install vim-gtk3
Now, right click > copy will copy to system clipboard. Now, right click > copy will copy to system clipboard.
Alternatively you can copy to the `+` or `*` register (`"`` + `+` + `y` ) and paste outside. Alternatively you can copy to the `+` or `*` register (`"`` + `+` + `y` ) and paste outside.
### Avante
Reference: https://github.com/yetone/avante.nvim/blob/main/lua/avante/config.lua
## Shortcut Reference ## Shortcut Reference
`<LEADER>` key is space key. I don't see a need to change it for me. `<LEADER>` key is space key. I don't see a need to change it for me.

View File

@ -1,14 +1,21 @@
-- https://github.com/yetone/avante.nvim -- https://github.com/yetone/avante.nvim
-- Note disabled for now. (See enabled=false)
return { return {
{ {
"yetone/avante.nvim", "yetone/avante.nvim",
enabled = false,
event = "VeryLazy", event = "VeryLazy",
lazy = false, lazy = false,
version = false, -- set this if you want to always pull the latest change version = false, -- set this if you want to always pull the latest change
opts = { opts = {
-- add any opts here provider = "pws_llm",
vendors = {
pws_llm = {
endpoint = "http://localhost:8000",
model = "gpt2",
timeout = 30000,
api_key_name = "", --empty because no key is required
api_key = "", --self hosted :)
},
},
}, },
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make", build = "make",