52 lines
1.3 KiB
Lua
52 lines
1.3 KiB
Lua
return {
|
|
'olimorris/codecompanion.nvim',
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
'nvim-treesitter/nvim-treesitter',
|
|
},
|
|
config = {
|
|
adapters = {
|
|
llama3 = function()
|
|
return require('codecompanion.adapters').extend('ollama', {
|
|
name = 'llama3', -- Give this adapter a different name to differentiate it from the default ollama adapter
|
|
schema = {
|
|
model = {
|
|
default = 'llama3.1',
|
|
},
|
|
-- num_ctx = {
|
|
-- default = 16384,
|
|
-- },
|
|
-- num_predict = {
|
|
-- default = -1,
|
|
-- },
|
|
},
|
|
})
|
|
end,
|
|
deepseekr1 = function()
|
|
return require('codecompanion.adapters').extend('ollama', {
|
|
name = 'deepseekr1', -- Give this adapter a different name to differentiate it from the default ollama adapter
|
|
schema = {
|
|
model = {
|
|
default = 'deepseek-r1',
|
|
},
|
|
-- num_ctx = {
|
|
-- default = 16384,
|
|
-- },
|
|
-- num_predict = {
|
|
-- default = -1,
|
|
-- },
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
strategies = {
|
|
chat = {
|
|
adapter = 'deepseekr1',
|
|
},
|
|
inline = {
|
|
adapter = 'deepseekr1',
|
|
},
|
|
},
|
|
},
|
|
}
|