change default World series prefix to User/Assistant

This commit is contained in:
josc146 2023-10-26 16:58:53 +08:00
parent 627a20936d
commit 43cfab5d4b
2 changed files with 4 additions and 4 deletions

View File

@ -356,8 +356,8 @@ class TextRWKV(AbstractRWKV):
self.END_OF_LINE = 187
else:
self.rwkv_type = RWKVType.World
self.user = "Question"
self.bot = "Answer"
self.user = "User"
self.bot = "Assistant"
self.END_OF_LINE = 11
self.AVOID_REPEAT_TOKENS = []

View File

@ -417,8 +417,8 @@ const ChatPanel: FC = observer(() => {
onClick={() => {
let savedContent: string = '';
const isWorldModel = commonStore.getCurrentModelConfig().modelParameters.modelName.toLowerCase().includes('world');
const user = isWorldModel ? 'Question' : 'Bob';
const bot = isWorldModel ? 'Answer' : 'Alice';
const user = isWorldModel ? 'User' : 'Bob';
const bot = isWorldModel ? 'Assistant' : 'Alice';
commonStore.conversationOrder.forEach((uuid) => {
if (uuid === welcomeUuid)
return;