-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid removing whitespace between prompts (trim) #42
Comments
At first there were spaces, but lost9999 mentioned that extra spaces consume token count. #10 |
I see. I believe it is not the goal of this extension, but I may be mistaken. |
The extension has not been developed for long, and I am the only one, so I do not have much energy to develop many features that do not affect normal use. One is affecting token counting, and the other is just a matter of convenience for viewing. At present, I must prioritize developing features that affect functionality. This can only be done gradually, but it will definitely be done in the future. Others have also mentioned this issue. |
A checkbox has been added to the settings to indicate whether to keep or remove spaces. |
Former-commit-id: 7d17dc0728ed55439c8dbd30d878376ea8da739c
I think spaces consuming tokens only affects certain languages, particularly kanji-based ones. When using English words, the spaces after commas don't change the token count. |
Hello,
When the prompt input loses focus, the prompts currently changes from "masterpiece, best quality" to "masterpiece,best quality".
Doing like this helps improve prompt readablilty and leaves the user style unchanged.
Thanks !
The text was updated successfully, but these errors were encountered: