Remove some oobabooga stop strings

This commit is contained in:
aegkmq
2023-08-29 05:14:12 +09:00
committed by GitHub
parent 4ef79c9e3c
commit 627f90440a

View File

@@ -107,22 +107,11 @@ export function getStopStrings(suggesting:boolean=false){
"<|end",
"<|im_end",
userPrefix,
"\nYou ",
`*${username}'`,
`*${username} `,
`\n${username} `,
`${username}:`,
]
if(seperator !== " "){
stopStrings.push(seperator + username)
}
if(suggesting){
stopStrings.push("\n\n")
}
if(!suggesting){
stopStrings.push("*You ")
stopStrings.push(" You ")
}
for (const user of userStrings){
for (const u of [
user.toLowerCase(),
@@ -396,4 +385,4 @@ function formatToAIN(name:string, content:string){
}
}
return strs
}
}