This commit is contained in:
2025-02-21 03:02:01 -08:00
parent 9bae49fa30
commit e216dc057c
8 changed files with 147 additions and 24 deletions

View File

@@ -29,6 +29,20 @@ return {
},
})
end,
llama_cpp = function()
return require("codecompanion.adapters").extend("openai_compatible", {
name = "llama-cpp",
schema = {
model = {
default = "qwen2.5-coder-14b-instruct",
},
},
env = {
url = "http://localhost:8888",
chat_url = "/v1/chat/completions",
},
})
end,
},
strategies = {
chat = {