yetone / avante.nvim

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

Sending message to fast!, API key is not yet set #264

Closed Pixxle closed 2 weeks ago

Pixxle commented 2 weeks ago

Trying to use this but somewhere I'm failing right now and not sure what I'm doing wrong and can't see anything in the documentation that differs from how I've configured avante.

Configuration:

{
        "yetone/avante.nvim",
        event = "VeryLazy",
        build = "make", -- This is Optional, only if you want to use tiktoken_core to calculate tokens count
        opts = {
            -- add any opts here
            provider = "claude",
        },
        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" },
            },
            --- For image pasting support
            {
                "HakonHarnes/img-clip.nvim",
                event = "VeryLazy",
                opts = {},
            },
        },
    },

and if i run env i see that i have ANTHROPIC_API_KEY=sk-ant-api03... configured. But I'm still getting the message "Sending message to fast!, API key is not yet set" when trying to send a question. Any clue?

aarnphm commented 2 weeks ago

should be fixed now on main thanks for spotting this