From 995badacb52c53dbb6a73c719a4231fb9acaa5a0 Mon Sep 17 00:00:00 2001 From: Kwaroran Date: Sat, 24 May 2025 20:15:33 +0900 Subject: [PATCH] Fix escape and add escape option --- src/lang/en.ts | 1 + src/lang/ko.ts | 1 + src/lib/SideBars/CharConfig.svelte | 4 +++ src/ts/parser.svelte.ts | 39 ++++++++++++------------------ src/ts/process/index.svelte.ts | 3 ++- src/ts/process/request.ts | 17 ++++++++++--- src/ts/storage/database.svelte.ts | 1 + 7 files changed, 37 insertions(+), 29 deletions(-) diff --git a/src/lang/en.ts b/src/lang/en.ts index 19ebe0f8..af7c9475 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -1128,5 +1128,6 @@ export const languageEnglish = { promptInfoEmptyMessage: "No prompt information is available for this message.", promptInfoEmptyToggle: "No custom toggles are currently active.", promptInfoEmptyText: "No prompt text has been saved.", + escapeOutput: "Escape Output", } diff --git a/src/lang/ko.ts b/src/lang/ko.ts index aa96a8a5..d41d1207 100644 --- a/src/lang/ko.ts +++ b/src/lang/ko.ts @@ -995,4 +995,5 @@ export const languageKorean = { "promptInfoEmptyMessage": "이 메시지에 대한 프롬프트 정보가 없습니다.", "promptInfoEmptyToggle": "활성화된 커스텀 토글이 없습니다.", "promptInfoEmptyText": "저장된 프롬프트 텍스트가 없습니다.", + "escapeOutput": "출력 이스케이프", } diff --git a/src/lib/SideBars/CharConfig.svelte b/src/lib/SideBars/CharConfig.svelte index 3fa58c3f..a91f7015 100644 --- a/src/lib/SideBars/CharConfig.svelte +++ b/src/lib/SideBars/CharConfig.svelte @@ -1089,6 +1089,10 @@ +
+ +
+ {#if DBState.db.supaModelType !== 'none' && DBState.db.hypav2}