jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.56k stars 307 forks source link

EditWithInstructions creates two Chat windows and doesn't respond #451

Open nikitoshina opened 1 week ago

nikitoshina commented 1 week ago

I ran into a problem when using EditWithInstructions: it wouldn't react to sending the the prompt and happens to produce two Chat windows, which looks different from the demo. I have updated nvim to 0.10.0 as well as all the packages. I have attached my config and a screenshot. Would appreciate any ideas on how to get it to work!

    {
        "jackMort/ChatGPT.nvim",
        cmd = { "ChatGPT", "ChatGPTRun", "ChatGPTEditWithInstructions" },
        lazy = true,
        config = function()
            require("chatgpt").setup({
                actions_paths = { "~/.config/nvim/lua/plugins/gpt_actions.json" },
                openai_params = {
                    model = "gpt-4o",
                    temperature = 0.6,
                },
                api_key_cmd = "op read op://bbas/OpenAi_bbas/api_key",
            })
        end,
        dependencies = {
            "MunifTanjim/nui.nvim",
            "nvim-lua/plenary.nvim",
            "folke/trouble.nvim",
            "nvim-telescope/telescope.nvim",
        },
    },

image