mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-17 12:10:49 +01:00
Hotfix for tokenizer modifying spaced ellipses and breaking new text recognition.
This commit is contained in:
parent
c0736a8ec7
commit
0b113a75b4
@ -701,7 +701,12 @@ def getnewcontent(txt):
|
|||||||
else:
|
else:
|
||||||
delim = vars.actions[-1]
|
delim = vars.actions[-1]
|
||||||
|
|
||||||
return (txt.split(delim)[-1])
|
# Fix issue with tokenizer replacing space+period with period
|
||||||
|
delim = delim.replace(" .", ".")
|
||||||
|
|
||||||
|
split = txt.split(delim)
|
||||||
|
|
||||||
|
return (split[-1])
|
||||||
|
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
# Applies chosen formatting options to text submitted to AI
|
# Applies chosen formatting options to text submitted to AI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user