[fix] romanizer fix

This commit is contained in:
kwaroran
2023-11-09 20:11:04 +09:00
parent 55ef73a06b
commit d248c53192
2 changed files with 8 additions and 5 deletions

View File

@@ -488,10 +488,13 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
}
}
unformated.postEverything.push({
role: 'system',
content: `user and assistant are chatting with romanized ${r.mostUsed}, but always respond with ${r.mostUsed} with ${r.mostUsed} letters.`
})
if(r.mostUsed !== 'roman'){
unformated.postEverything.push({
role: 'system',
content: `user and assistant are chatting with romanized ${r.mostUsed}, but always respond with ${r.mostUsed} with ${r.mostUsed} letters.`
})
}
}
if(nowChatroom.supaMemory && db.supaMemoryType !== 'none'){