Remove some oobabooga stop strings (#238)

# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [x] Did you added a type def?

# Description
This commit is contained in:
kwaroran
2023-08-30 20:11:26 +09:00
committed by GitHub

View File

@@ -112,22 +112,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(),
@@ -401,4 +390,4 @@ function formatToAIN(name:string, content:string){
}
}
return strs
}
}