fixed code companion

This commit is contained in:
Radu Macocian (admac)
2026-01-26 15:24:51 +01:00
parent 7a52559749
commit fab0a0643a

View File

@@ -1,16 +1,12 @@
require('codecompanion').setup({
interactions = {
chat = {
adapter = "ollama",
model = "deepseek-coder:6.7b"
},
},
adapters = {
ollama = function()
return require("codecompanion.adapters").extend("openai", {
http = {
webui = function()
return require("codecompanion.adapters").extend("openai_compatible", {
env = {
url = "https:openwebui.estatecloud.org",
api_key = "sk-c7e3b3c942b34528a486eb443d200de6"
url = "https://openwebui.estatecloud.org",
api_key = "sk-c7e3b3c942b34528a486eb443d200de6",
chat_url = "/api/chat/completions",
},
schema = {
model = {
@@ -20,4 +16,11 @@ require('codecompanion').setup({
})
end,
}
},
interactions = {
chat = {
adapter = "webui",
model = "deepseek-coder:6.7b"
},
}
})