CodeCompanion test
This commit is contained in:
40
lua/config/codecompanion.lua
Normal file
40
lua/config/codecompanion.lua
Normal file
@ -0,0 +1,40 @@
|
||||
require("codecompanion").setup({
|
||||
interactions = {
|
||||
chat = {
|
||||
adapter = "auraid",
|
||||
opts = {
|
||||
completion_provider = "cmp",
|
||||
context_management = { enabled = false },
|
||||
},
|
||||
},
|
||||
inline = { adapter = "auraid" },
|
||||
},
|
||||
adapters = {
|
||||
http = {
|
||||
auraid = function()
|
||||
return require("codecompanion.adapters").extend("ollama", {
|
||||
env = {
|
||||
url = "http://localhost:11434",
|
||||
},
|
||||
headers = {
|
||||
["Content-Type"] = "application/json",
|
||||
},
|
||||
schema = {
|
||||
model = { default = "qwen36-vision:latest" },
|
||||
temperature = { default = 0.7 },
|
||||
think = { default = false },
|
||||
max_tokens = { default = 268288 },
|
||||
},
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
show_model_choices = false,
|
||||
show_presets = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
log_level = "TRACE",
|
||||
send_code = true,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user