yetone / avante.nvim

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

bug: claude generating no response #775

Open sayandipdutta opened 1 day ago

sayandipdutta commented 1 day ago

Describe the bug

When I press <leader>aa or :AvanteAsk and after submitting the message in the chat area, it instantly shows Generating response... and Generation complete! Please review the code suggestion above.. I have checked that I have enough credit in my account.

image

To reproduce

No response

Expected behavior

No response

Installation method

Using lazy.nvim:

return {
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  opts = {
    provider = "claude",
  },
  build = "make",
  keys = {
    {
      "<leader>aa",
      function()
        require("avante.api").ask()
      end,
      desc = "avante: ask",
      mode = { "n", "v" },
    },
    {
      "<leader>ar",
      function()
        require("avante.api").refresh()
      end,
      desc = "avante: refresh",
    },
    {
      "<leader>ae",
      function()
        require("avante.api").edit()
      end,
      desc = "avante: edit",
      mode = "v",
    },
  },
  dependencies = {
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
    --- The below dependencies are optional,
    "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
    {
      -- support for image pasting
      "HakonHarnes/img-clip.nvim",
      event = "VeryLazy",
      opts = {
        -- recommended settings
        default = {
          embed_image_as_base64 = false,
          prompt_for_file_name = false,
          drag_and_drop = {
            insert_mode = true,
          },
          -- required for Windows users
          use_absolute_path = true,
        },
      },
    },
    {
      -- Make sure to setup it properly if you have lazy=true
      "MeanderingProgrammer/render-markdown.nvim",
      opts = {
        file_types = { "markdown", "Avante" },
      },
      ft = { "markdown", "Avante" },
    },
  },
}

Environment

neovim version: 0.10.2 platform: Ubuntu 24.04 On WSL2 on Windows 11

Repro

No response

parchinski commented 1 day ago

I am also experiencing this issue on Arch WSL nothing seems to fix this error after multiple reinstalls, the same config works on macbookm1.

sayandipdutta commented 1 day ago

A month ago this same config worked for me too.

parchinski commented 3 hours ago

Did you happen to find a solution?

I am wondering if it happens to be the model name we are calling for Claude, I am using the exact same one as you and having the exact same error. It also could have to do with WSL but I really don't think it would be that right?

I have played around putting different model names to work and can't get any to work. I have like at least 60 dollars in credits for the API so it can't be that.

Once again though this works on my macbook air perfectly, so I do not understand what could be happening in our situation but it's super unfortunate that there is no error code in either case.

sayandipdutta commented 1 hour ago

Nope, WSL or model version is not a problem. I have the same setup on a different machine, it works. As a matter of fact nvim version is 0.10.0 in that machine, lower than the prescribed 0.10.1. I can't figure out what's going wrong! I will try to take a closer look in the weekends.