Remove some oobabooga stop strings
This commit is contained in:
@@ -107,22 +107,11 @@ export function getStopStrings(suggesting:boolean=false){
|
|||||||
"<|end",
|
"<|end",
|
||||||
"<|im_end",
|
"<|im_end",
|
||||||
userPrefix,
|
userPrefix,
|
||||||
"\nYou ",
|
|
||||||
`*${username}'`,
|
|
||||||
`*${username} `,
|
|
||||||
`\n${username} `,
|
|
||||||
`${username}:`,
|
`${username}:`,
|
||||||
]
|
]
|
||||||
if(seperator !== " "){
|
|
||||||
stopStrings.push(seperator + username)
|
|
||||||
}
|
|
||||||
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(),
|
||||||
@@ -396,4 +385,4 @@ function formatToAIN(name:string, content:string){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return strs
|
return strs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user