From 05df2be0476c1ebeee41de77921545abb7c9f7bb Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:19:54 +0000 Subject: [PATCH] Trim renamed chat name --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index ec90ab118..8f7baebb4 100644 --- a/public/script.js +++ b/public/script.js @@ -8807,7 +8807,7 @@ export async function renameChat(oldFileName, newName) { is_group: !!selected_group, avatar_url: characters[this_chid]?.avatar, original_file: `${oldFileName}.jsonl`, - renamed_file: `${newName}.jsonl`, + renamed_file: `${newName.trim()}.jsonl`, }; try {