added gpt to code companion

This commit is contained in:
Radu Macocian (admac)
2026-02-19 16:12:07 +01:00
parent ab283ccad7
commit 0fb4815945
2 changed files with 14 additions and 3 deletions

View File

@@ -15,12 +15,23 @@ require('codecompanion').setup({
} }
}) })
end, end,
},
acp = {
codex = function()
return require("codecompanion.adapters").extend("codex", {
defaults = {
auth_method = "chatgpt"
},
})
end
} }
}, },
interactions = { interactions = {
chat = { chat = {
adapter = "webui", adapter = "codex",
model = "deepseek-coder:6.7b" model = "gpt-5"
}, },
} }
}) })
vim.keymap.set('n', '<leader>gpt', function(opts) require("codecompanion").chat(opts) end);

View File

@@ -15,7 +15,7 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "21c2a84ce368e99b18f52ab348c4c02c32c02fcf" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "21c2a84ce368e99b18f52ab348c4c02c32c02fcf" },
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" }, "mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
"mini.icons": { "branch": "main", "commit": "68c178e0958d95b3977a771f3445429b1bded985" }, "mini.icons": { "branch": "main", "commit": "68c178e0958d95b3977a771f3445429b1bded985" },
"neogit": { "branch": "master", "commit": "df323856553d4c5e5c41117606c63f628b24a3b0" }, "neogit": { "branch": "master", "commit": "22433eae87236c217e0810c836fa5e529c043d4c" },
"nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" }, "nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" },
"nvim-dap": { "branch": "master", "commit": "db321947bb289a2d4d76a32e76e4d2bd6103d7df" }, "nvim-dap": { "branch": "master", "commit": "db321947bb289a2d4d76a32e76e4d2bd6103d7df" },
"nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" }, "nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" },