KoboldAI / KoboldAI-Client

For GGUF support, see KoboldCPP: https://github.com/LostRuins/koboldcpp
https://koboldai.com
GNU Affero General Public License v3.0
3.48k stars 748 forks source link

Bug: Sentence spacing doesn't remove created spaces when undoing #122

Closed shinkarom closed 2 years ago

shinkarom commented 2 years ago

The NovelAI wiki recommends to not have spaces at the end of the prompt, because it breaks the coherence.

However, when using "Add sentence spacing", which add spaces between resuls, undoing leaves the generated space in. This creates a problem for generating next.

When undoing chunks with sentence spacing enabled, the engine should strip the final spaces from all text left.

shinkarom commented 2 years ago

Done. Thank you. #108 is also resolved.