[feat] trim only on group

This commit is contained in:
kwaroran
2023-08-01 12:24:53 +09:00
parent 8b49c440f8
commit 489f4cfbf1

View File

@@ -55,6 +55,9 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
} }
function reformatContent(data:string){ function reformatContent(data:string){
if(chatProcessIndex === -1){
return data.trim()
}
return data.trim().replace(`${currentChar.name}:`, '').trim() return data.trim().replace(`${currentChar.name}:`, '').trim()
} }