Community
    • Login

    [New Plugin] NppOpenAI

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    47 Posts 19 Posters 47.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Richárd StockingerR
      Richárd Stockinger @mmb78
      last edited by

      @mmb78 Hi! I removed the support for legacy models from the latest releases (e.g. text-davinci-003, text-davinci-002, davinci, curie, babbage, ada; they caused more problems than they solved), and now the plugin supports the up-to-date models, including Llama (tested via Groq and localhost). ^^

      Additionally proxy support has been added, so you can try out DeepSeek if you want. ;)

      I hope it will available in the Plugin Manager soon (my PR has been accepted yesterday), but if you want to update manually, you can find useful info in this FAQ:
      https://github.com/Krazal/nppopenai/wiki/FAQ#question-ive-an-old-buggy-nppopenai-release-how-should-i-update

      1 Reply Last reply Reply Quote 2
      • Tibor BaráthT
        Tibor Baráth
        last edited by

        Hi @Richárd Stockinger,
        I would like to test your plug-in, I configured my API secret_key in the ini file, and reloaded it, but the plugin doesn’t work, and responses this error string:
        “Incorrect API key provided …”
        My API key is definitely working good, because I created a test php code with using cURL library, and with it, the response created successfully.
        Do you have any idea, what went wrong?

        Richárd StockingerR 1 Reply Last reply Reply Quote 0
        • Richárd StockingerR
          Richárd Stockinger @Tibor Baráth
          last edited by

          Hi @Tibor-Baráth,

          You may be using an older version of NppOpenAI (e.g. v0.4.0.0) that does not yet support long API keys. :(

          Please check for updates, or try updating the plugin manually. You can find more details about these in this issue:
          The problem with the gpt chat keys (#32)

          1 Reply Last reply Reply Quote 1
          • AlexandrA
            Alexandr
            last edited by

            deepseek For NppOpenAI.ini

            [API]
            secret_key=xxx
            model=deepseek-chat
            temperature=0.7
            max_tokens=0
            top_p=0.8
            frequency_penalty=0
            presence_penalty=0
            api_url=https://api.deepseek.com/beta
            [PLUGIN]
            keep_question=1
            total_tokens_used=22374
            is_chat=0
            chat_limit=10

            1 Reply Last reply Reply Quote 2
            • S
              st333v
              last edited by

              wow, this sounds like a great tool, cant wait to use it.

              i wonder if it will be possible to add support for google code assist, they have just opened up free access for individual developers.

              also abillity to use the latest grok (3) would be cool too.

              1 Reply Last reply Reply Quote 1
              • A
                andrea-tomassi
                last edited by

                Hello everyone,

                I recently came across this plugin and found it promising for my typical workflow. However, I encountered a blocking bug: a 2 000-character limit on the selection imposed by Notepad++. Additionally, relying on a single system prompt for every scenario proved insufficiently flexible.

                I investigated and discovered that the bug had been reported some time ago, and the project was effectively stalled due to other commitments within the community.

                Accordingly, I forked the repository, fixed the bug, and submitted a pull request to the original project. I then restructured the code and developed a new feature to support multiple system prompts. Since the latter is not strictly a bug fix, I did not submit a pull request for that change.

                I hope the community finds my repository useful:
                https://github.com/andrea-tomassi/nppopenai

                A 1 Reply Last reply Reply Quote 4
                • A
                  andrea-tomassi @andrea-tomassi
                  last edited by

                  @andrea-tomassi said in [New Plugin] NppOpenAI:

                  Hello everyone,

                  I recently came across this plugin and found it promising for my typical workflow. However, I encountered a blocking bug: a 2 000-character limit on the selection imposed by Notepad++. Additionally, relying on a single system prompt for every scenario proved insufficiently flexible.

                  I investigated and discovered that the bug had been reported some time ago, and the project was effectively stalled due to other commitments within the community.

                  Accordingly, I forked the repository, fixed the bug, and submitted a pull request to the original project. I then restructured the code and developed a new feature to support multiple system prompts. Since the latter is not strictly a bug fix, I did not submit a pull request for that change.

                  I hope the community finds my repository useful:
                  https://github.com/andrea-tomassi/nppopenai

                  EDIT: the PR has been merged into the original project, no need for using my fork

                  1 Reply Last reply Reply Quote 2
                  • Richárd StockingerR
                    Richárd Stockinger
                    last edited by

                    Hi everyone,

                    @andrea-tomassi’s PR was really helpful, and it was accepted of course, moreover this gave the project a great shake-up! Of course, the update has also been added to the nppPluginList repository and was recently accepted.

                    If someone doesn’t want to wait, manual installation is available as usual with the v0.5 release (unzip the appropriate ZIP file to the plugins/NppOpenAI folder):
                    https://github.com/Krazal/nppopenai/releases/tag/v0.5.0

                    The last few months have been very stressful for me (there was a nationwide update in the Hungarian .HU domain name registry, which also affected our developments too), but now things are starting to calm down and I hope to have more time for the plugin. ✨

                    Once again, thank you to those of you who are trying out the plugin, and I am very grateful for all the contributions!

                    1 Reply Last reply Reply Quote 1
                    • erik neymanE
                      erik neyman
                      last edited by

                      This post is deleted!
                      Richárd StockingerR 1 Reply Last reply Reply Quote 0
                      • Richárd StockingerR
                        Richárd Stockinger @erik neyman
                        last edited by Richárd Stockinger

                        @erik-neyman
                        Hi,

                        first of all, please hide/change your secret_key setting (or remove the image), as this is a public forum and others may misuse it. :(

                        Unfortunately, there may be bugs in the latest NppOpenAI v0.5 update (updates/fixes can be found on the NppOpenAI development project page), so I suggest that instead of setting a route_chat_completions, you should specify the URL “all at once”, e.g.

                        api_url=https://api.openai.com/v1/chat/completions
                        

                        Edit: You can leave the route_chat_completions setting unchanged.

                        I apologise for the error!

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors