Getting access denied when trying to do any prompt #399
-
I'm trying to install the plugin, but I can't get it to work. I'm using Copilot as my LLM. When I send a prompt, I get the following error: I've run the health check, and everything reports as OK. Copilot itself is working correctly ( code companion config: return {
"olimorris/codecompanion.nvim",
lazy = false,
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
{
"iguanacucumber/magazine.nvim",
name = "nvim-cmp", -- Otherwise highlighting gets messed up
},
"nvim-telescope/telescope.nvim", -- Optional: For using slash commands
{
"MeanderingProgrammer/render-markdown.nvim",
ft = { "markdown", "codecompanion" }, -- Optional: For prettier markdown rendering
{ "stevearc/dressing.nvim", opts = {} }, -- Optional: Improves `vim.ui.select`
},
config = true,
},
config = function()
vim.cmd([[cab cc CodeCompanion]])
require("codecompanion").setup({
strategies = {
chat = {
adapter = "copilot",
},
inline = {
adapter = "copilot",
},
agent = {
adapter = "copilot",
},
},
log_level = "DEBUG",
})
end,
}
copilot vimscript config: return {
"github/copilot.vim",
lazy = false,
config = function()
vim.g.copilot_no_tab_map = true
vim.keymap.set("i", "<C-F>", 'copilot#Accept("")', {
expr = true,
replace_keycodes = false,
})
end,
} Thanks for your help and time! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I suspect that's because I have set Anthropic as the default and you haven't enabled it in GitHub. That's my bad. I'd advise adjusting your Copilot adapter to use gpt-4 (the README outlines how you can do these types of changes) or enable Anthropic via your GitHub settings. I'll push a fix for this tomorrow. |
Beta Was this translation helpful? Give feedback.
I suspect that's because I have set Anthropic as the default and you haven't enabled it in GitHub. That's my bad.
I'd advise adjusting your Copilot adapter to use gpt-4 (the README outlines how you can do these types of changes) or enable Anthropic via your GitHub settings.
I'll push a fix for this tomorrow.