From 1f4b74606c001daf0e35a5b4478224d477d9433d Mon Sep 17 00:00:00 2001 From: whitney Date: Tue, 8 Oct 2024 16:00:00 -0700 Subject: [PATCH] WIP add pws llm as a vendor for avante. Queries do not make it to LLM. --- lazyvim/README.md | 3 +++ lazyvim/lua/plugins/avante.lua | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lazyvim/README.md b/lazyvim/README.md index 0653591..dc2725e 100644 --- a/lazyvim/README.md +++ b/lazyvim/README.md @@ -52,5 +52,8 @@ sudo apt install vim-gtk3 Now, right click > copy will copy to system clipboard. 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 `` key is space key. I don't see a need to change it for me. diff --git a/lazyvim/lua/plugins/avante.lua b/lazyvim/lua/plugins/avante.lua index d5ef568..5f53879 100644 --- a/lazyvim/lua/plugins/avante.lua +++ b/lazyvim/lua/plugins/avante.lua @@ -1,14 +1,21 @@ -- https://github.com/yetone/avante.nvim --- Note disabled for now. (See enabled=false) return { { "yetone/avante.nvim", - enabled = false, event = "VeryLazy", lazy = false, version = false, -- set this if you want to always pull the latest change 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` build = "make",