mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
fixed code companion
This commit is contained in:
@@ -1,23 +1,26 @@
|
|||||||
require('codecompanion').setup({
|
require('codecompanion').setup({
|
||||||
|
adapters = {
|
||||||
|
http = {
|
||||||
|
webui = function()
|
||||||
|
return require("codecompanion.adapters").extend("openai_compatible", {
|
||||||
|
env = {
|
||||||
|
url = "https://openwebui.estatecloud.org",
|
||||||
|
api_key = "sk-c7e3b3c942b34528a486eb443d200de6",
|
||||||
|
chat_url = "/api/chat/completions",
|
||||||
|
},
|
||||||
|
schema = {
|
||||||
|
model = {
|
||||||
|
default = "deepseek-coder:6.7b", -- Use the exact model name from your PC
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
},
|
||||||
interactions = {
|
interactions = {
|
||||||
chat = {
|
chat = {
|
||||||
adapter = "ollama",
|
adapter = "webui",
|
||||||
model = "deepseek-coder:6.7b"
|
model = "deepseek-coder:6.7b"
|
||||||
},
|
},
|
||||||
},
|
|
||||||
adapters = {
|
|
||||||
ollama = function()
|
|
||||||
return require("codecompanion.adapters").extend("openai", {
|
|
||||||
env = {
|
|
||||||
url = "https:openwebui.estatecloud.org",
|
|
||||||
api_key = "sk-c7e3b3c942b34528a486eb443d200de6"
|
|
||||||
},
|
|
||||||
schema = {
|
|
||||||
model = {
|
|
||||||
default = "deepseek-coder:6.7b", -- Use the exact model name from your PC
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user