more things

This commit is contained in:
2025-12-03 11:40:01 -05:00
parent 3089d6fdd1
commit 0ed577e815
10 changed files with 213 additions and 96 deletions

View File

@@ -0,0 +1,27 @@
require("plugins.codecompanion.fidget-spinner"):init()
require("codecompanion").setup({
opts = { log_level = "DEBUG" },
adapters = {
http = {
["llama-swap"] = function()
return require("codecompanion.adapters").extend("openai_compatible", {
name = "llama-swap",
formatted_name = "LlamaSwap",
schema = {
model = {
default = "qwen3-coder-30b-instruct",
},
},
env = {
url = "http://10.0.20.100:8080",
api_key = "none",
},
})
end,
},
},
strategies = {
chat = { adapter = "llama-swap" },
inline = { adapter = "llama-swap" },
},
})