bug: API request failed with status 400
Describe the bug
This happened with my below config. I use copilot enterprise and I dont have any limit as such. I dont know what should i do to remove this error please help me
To reproduce
use nvim 0.10.3 ubuntu 22.04I
Expected behavior
No response
Installation method
Use lazy.nvim:
{
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change
opts = {
-- add any opts here
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
}
Environment
I use nvim 0.10.3 ubuntu 22.04
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
-- add any other plugins here
},
})
same problem
getting 404 here at my side.
same, I setup with deepseek, send question response 401 Error: 'API request failed with status 401. Body: "Authentication Fails (auth header format should be Bearer sk-...)"'
Should be a duplicate of #697
Try setting the disable tools field in opts
opts = {
provider = "copilot",
copilot = {
disable_tools = false,
},
}
Try setting the disable tools field in opts
opts = { provider = "copilot", copilot = { disable_tools = false, }, }
with disable_tools = true, it works now