50 lines
1.1 KiB
Lua
50 lines
1.1 KiB
Lua
return {
|
|
"olimorris/codecompanion.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
},
|
|
opts = {
|
|
strategies = {
|
|
-- Change the default chat adapter
|
|
chat = {
|
|
adapter = "ollama",
|
|
},
|
|
inline = {
|
|
adapter = "ollama",
|
|
}
|
|
},
|
|
adapters = {
|
|
ollama = function()
|
|
return require("codecompanion.adapters").extend("ollama", {
|
|
name = "gemma3:12b",
|
|
env = {
|
|
url = "http://192.168.10.99:11434",
|
|
api_key = "OLLAMA_API_KEY",
|
|
},
|
|
headers = {
|
|
["Content-Type"] = "application/json",
|
|
["Authorization"] = "Bearer ${api_key}",
|
|
},
|
|
parameters = {
|
|
sync = true,
|
|
},
|
|
schema = {
|
|
model = {
|
|
default = "deepseek-r1:32b",
|
|
},
|
|
num_ctx = {
|
|
default = 16384,
|
|
},
|
|
}
|
|
})
|
|
end,
|
|
},
|
|
opts = {
|
|
-- Set debug logging
|
|
log_level = "DEBUG",
|
|
},
|
|
},
|
|
enabled = false
|
|
}
|