Closed vinsworldcom closed 1 year ago
Thank you for your feedback and using plugin!
It seems, you've reached an OpenAI token limit. Please go to Plugins » NppOpenAI » Edit Config
and set max_tokens=4096
(recommended maximum value).
Save file, and click Plugins » NppOpenAI » Load Config
or restart Notepad++.
You can find more information about token usage at OpenAI: https://openai.com/pricing
Just FYI, setting to 4096 returns this error:
Seems 4080 is the maximum value you can use without generating that error. And that does appear to fix the issue.
Maybe adding a comment in the INI file about max_tokens
in case others have issue?
Cheers.
Actually, the reason 4080 worked for me was because of the size of my question is included as well, shorter question allows more tokens, longer question will generate that error again if using 4080. I've settled on:
max_tokens=3584
Which allows for a pretty long question and I haven't seen a truncated response yet.
Cheers.
First of all: I am sorry for the inactivity in the last weeks (months)! :(
I have updated the OpenAI response handling, so if the finish_reason is "length", then "The answer may be incomplete." message will be appear. Additionally, if the finish_reason is "content_filter" (moderation), another alert will pop up.
Using Notepad++ 8.5, 64-bit and your latest plugin. First off - amazing! There is an issue I see with longer responses getting truncated.
Enter a pretty open ended question:
and the response back to Scintilla is:
and it just ends there - the answer being 1,143 characters according to Notepad++ selection counter. I tried the same query with
curl
direct from my command line:and the story completes - obviously different, but complete - 2,072 characters worth.
Cheers.