mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
37 lines
1.1 KiB
Lua
37 lines
1.1 KiB
Lua
require('codecompanion').setup({
|
|
adapters = {
|
|
http = {
|
|
webui = function()
|
|
return require("codecompanion.adapters").extend("openai_compatible", {
|
|
env = {
|
|
url = "https://openwebui.estatecloud.org",
|
|
chat_url = "/api/chat/completions",
|
|
},
|
|
schema = {
|
|
model = {
|
|
default = "deepseek-coder:6.7b", -- Use the exact model name from your PC
|
|
}
|
|
}
|
|
})
|
|
end,
|
|
},
|
|
acp = {
|
|
codex = function()
|
|
return require("codecompanion.adapters").extend("codex", {
|
|
defaults = {
|
|
auth_method = "chatgpt"
|
|
},
|
|
})
|
|
end
|
|
}
|
|
},
|
|
interactions = {
|
|
chat = {
|
|
adapter = "codex",
|
|
model = "gpt-5",
|
|
},
|
|
}
|
|
})
|
|
|
|
vim.keymap.set('n', '<leader>gpt', function(opts) require("codecompanion").chat(opts) end);
|