From 19b3e176197c31d056672da0c5f2415600bedf0b Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 15 Sep 2024 18:18:44 +0900 Subject: [PATCH] Add bias escapes --- src/ts/process/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 8d8be93d..da56a4a1 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -800,7 +800,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{ } let biases:[string,number][] = db.bias.concat(currentChar.bias).map((v) => { - return [risuChatParser(v[0].replaceAll("\\n","\n"), {chara: currentChar}),v[1]] + return [risuChatParser(v[0].replaceAll("\\n","\n").replaceAll("\\r","\r").replaceAll("\\\\","\\"), {chara: currentChar}),v[1]] }) let memories:OpenAIChat[] = []