Krazal / nppopenai

OpenAI (aka. ChatGPT) plugin for Notepad++
GNU General Public License v2.0
65 stars 20 forks source link

The plugin makes a request by shortening my API key #29

Closed YusufDurmaz closed 2 months ago

YusufDurmaz commented 3 months ago

image

The part ending with Qfh1 is not the whole of my API key, but only a part of it.

(My api key has 164 chars)

Krazal commented 2 months ago

Hi!

Thank you for your feedback, and sorry for the inconvenience! I've increased the acceptable length of the OpenAI API Key from 128 to 256 characters, so this should work in the latest v0.4.0.1 release: https://github.com/Krazal/nppopenai/releases/latest

However this release is not yet available in the Notepad++ Plugin Repository, so if you'd like to install it manually, you may find useful information in the wiki (FAQ) page of the plugin: https://github.com/Krazal/nppopenai/wiki/FAQ#question-ive-an-old-buggy-nppopenai-release-how-should-i-update

YusufDurmaz commented 2 months ago

Thank you for your interest. Yes, the change you made solved my problem. I also learned that I need to have at least $5 in my Openai account ito use the API (according to what I learned from Openai's forum). Maybe if you specify this in the config, it may be useful for users who try it for the first time.