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 {