[feat] content trimming

This commit is contained in:
kwaroran
2023-08-03 14:42:10 +09:00
parent c7454be769
commit 40346e4f24

View File

@@ -575,6 +575,12 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
}
formated = formated.map((v) => {
v.content = v.content.trim()
return v
})
for(let i=0;i<formated.length;i++){
formated[i].memo = undefined