bug: insufficient_quota on a model I'm not using
Describe the bug
After updating to the newest version of Avante, I'm suddenly getting this message in any chat windows. I'm using the claude provider so I'm not sure why I'm getting errors related to chatgpt. I've tried clearing the cache or at least finding where anything related to the cache is and removing it but to no avail.
summarize chat thread title failed: {
code = "insufficient_quota",
message = "You exceeded your current quota, please check your plan and billing details. For more information on this error, read
the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.",
param = vim.NIL,
type = "insufficient_quota"
}
To reproduce
No response
Expected behavior
I would expect that only the model I've configured is used.
Installation method
Use lazy.nvim:
{
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
opts = {
provider = "claude",
auto_suggestions_provider = nil,
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-3-5-haiku-latest",
timeout = 30000,
temperature = 0,
max_tokens = 4096,
}
},
-- 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",
--- The below dependencies are optional,
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
-- "zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- 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 set this up 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: macOS 14.4
Repro
Works when OPENAI_API_KEY is removed from the environment. But yeah, still a bug!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.