yetone / avante.nvim

Use your Neovim like using Cursor AI IDE!
Apache License 2.0
4.98k stars 165 forks source link

[OpenAI] API request failed with status 404 #249

Closed varugasu closed 2 weeks ago

varugasu commented 2 weeks ago

Hey,

I am using Lunar Vim, but when I ask, it returns 404. Is there any way to debug it?

image

I also set OPENAI_API_KEY and the Editor also asked to paste when I opened the chat

:!nvim -v
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1723675123
Run "nvim -V1 -v" for more info

My plugin configuration:

lvim.plugins = {
  {
    "yetone/avante.nvim",
    event = "VeryLazy",
    build = "make", -- This is Optional, only if you want to use tiktoken_core to calculate tokens count
    opts = {
      provider = "openai",
      debug = true,
    },
    dependencies = {
      "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
      "stevearc/dressing.nvim",
      "nvim-lua/plenary.nvim",
      "MunifTanjim/nui.nvim",
      --- The below is optional, make sure to setup it properly if you have lazy=true
      {
        'MeanderingProgrammer/render-markdown.nvim',
        opts = {
          file_types = { "markdown", "Avante" },
        },
        ft = { "markdown", "Avante" },
      },
    },
  }
}
aarnphm commented 2 weeks ago

do you have credits?

varugasu commented 2 weeks ago

do you have credits?

Yeah, you are right. I just added some credits, and it worked. Thank you!!