[fix] autosuggest stop strings
This commit is contained in:
@@ -84,9 +84,7 @@ export function getStopStrings(suggesting:boolean=false){
|
|||||||
"<|end",
|
"<|end",
|
||||||
"<|im_end",
|
"<|im_end",
|
||||||
userPrefix,
|
userPrefix,
|
||||||
`*You '`,
|
"\nYou ",
|
||||||
`\nYou '`,
|
|
||||||
` You '`,
|
|
||||||
`*${username}'`,
|
`*${username}'`,
|
||||||
`*${username} `,
|
`*${username} `,
|
||||||
`\n${username} `,
|
`\n${username} `,
|
||||||
@@ -98,6 +96,10 @@ export function getStopStrings(suggesting:boolean=false){
|
|||||||
if(suggesting){
|
if(suggesting){
|
||||||
stopStrings.push("\n\n")
|
stopStrings.push("\n\n")
|
||||||
}
|
}
|
||||||
|
if(!suggesting){
|
||||||
|
stopStrings.push("*You ")
|
||||||
|
stopStrings.push(" You ")
|
||||||
|
}
|
||||||
for (const user of userStrings){
|
for (const user of userStrings){
|
||||||
for (const u of [
|
for (const u of [
|
||||||
user.toLowerCase(),
|
user.toLowerCase(),
|
||||||
|
|||||||
Reference in New Issue
Block a user