Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: API request failed with status 400 #1170

Open
menash134 opened this issue Feb 3, 2025 · 4 comments
Open

bug: API request failed with status 400 #1170

menash134 opened this issue Feb 3, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@menash134
Copy link

Describe the bug

Image

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

Image

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
  },
})
@menash134 menash134 added the bug Something isn't working label Feb 3, 2025
@menash134 menash134 changed the title bug: bug: API request failed with status 400 Feb 3, 2025
@lhybdv
Copy link

lhybdv commented Feb 8, 2025

same problem

@diegoulloao
Copy link

getting 404 here at my side.

@ndzuki
Copy link

ndzuki commented Feb 12, 2025

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-...)"'

@skt041959
Copy link

Should be a duplicate of #697

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants