yetone / avante.nvim

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

OpenAI stuck on "Generating response" #240

Closed Kamyil closed 2 months ago

Kamyil commented 2 months ago

I have the same issue as mentioned here https://github.com/yetone/avante.nvim/issues/211, but with OpenAI. My config (lazy):

return {
  "yetone/avante.nvim",
  event = "VeryLazy",
  build = "make BUILD_FROM_SOURCE=true luajit",
  opts = {
    provider = "openai",
  },
  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" },
    },
  },
}

It's also stuck on "Generating response"

image

    ● avante.nvim 10.75ms  VeryLazy
        dir    .../.local/share/nvim/lazy/avante.nvim
        url    https://github.com/yetone/avante.nvim
        branch main
        commit 26409d9
        readme README.md
        event   VeryLazy 

Neovim version:

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189

OS: macOS 14.6.1 23G93 arm64 Shell: zsh 5.9

Highly appreciate your work btw!

Kamyil commented 2 months ago

https://github.com/yetone/avante.nvim/issues/240#issuecomment-2310097754

Lol, didn't know there are scam comments on Github as well

aarnphm commented 2 months ago

Do you have credits on openai? It seems to load just find for me?

Screenshot 2024-08-26 at 08 45 23
Kamyil commented 2 months ago

Yeah, my bad. Didn't know that default premium subscription for ChatGPT is a completely different thing with different billing than in platform.openai.com I've added some minimal credits and it started working

Now it works, thank you, issue can be closed image

aarnphm commented 2 months ago

yep chatgpt is different from developer API :)