From 4cb9cd128fda9d8f8facd4c62a66d049fe9233dd Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 3 Dec 2023 03:11:14 +0200 Subject: [PATCH] Rename bookmarks to checkpoints --- .github/readme.md | 2 +- public/index.html | 12 ++++++------ public/script.js | 4 ++-- public/scripts/bookmarks.js | 14 +++++++------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/readme.md b/.github/readme.md index 9200790d8..fd1b98ee3 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -66,7 +66,7 @@ Get in touch with the developers directly: * A heavily modified TavernAI 1.2.8 (more than 50% of code rewritten or optimized) * Swipes * Group chats: multi-bot rooms for characters to talk to you or each other -* Chat bookmarks / branching (duplicates the dialogue in its current state) +* Chat checkpoints / branching * Advanced KoboldAI / TextGen generation settings with a lot of community-made presets * World Info support: create rich lore or save tokens on your character card * [OpenRouter](https://openrouter.ai) connection for various APIs (Claude, GPT-4/3.5 and more) diff --git a/public/index.html b/public/index.html index a380a9fc2..fa0a0b7c9 100644 --- a/public/index.html +++ b/public/index.html @@ -3900,7 +3900,7 @@ Unique to this chat. All group members will use the following scenario text instead of what is specified in their character cards. The following scenario text will be used instead of the value set in the character card. - Bookmarks inherit the scenario override from their parent, and can be changed individually after that. + Checkpoints inherit the scenario override from their parent, and can be changed individually after that.
@@ -4296,11 +4296,11 @@
-
+
-
+
@@ -4499,7 +4499,7 @@
Unique to this chat.
- Bookmarks inherit the Note from their parent, and can be changed individually after that.
+ Checkpoints inherit the Note from their parent, and can be changed individually after that.
@@ -4824,8 +4824,8 @@ Back to parent chat - - Save bookmark + + Save checkpoint diff --git a/public/script.js b/public/script.js index c574d998e..369bce7af 100644 --- a/public/script.js +++ b/public/script.js @@ -492,7 +492,7 @@ function getSystemMessages() { force_avatar: system_avatar, is_user: false, is_system: true, - mes: 'Bookmark created! Click here to open the bookmark chat: {1}', + mes: 'Checkpoint created! Click here to open the checkpoint chat: {1}', }, bookmark_back: { name: systemUserName, @@ -8018,7 +8018,7 @@ jQuery(async function () { const popupText = `

Enter the new name for the chat:

!!Using an existing filename will produce an error!!
- This will break the link between bookmark chats.
+ This will break the link between checkpoint chats.
No need to add '.jsonl' at the end.
`; const newName = await callPopup(popupText, 'input', old_filename); diff --git a/public/scripts/bookmarks.js b/public/scripts/bookmarks.js index 35da6ff86..2cac19087 100644 --- a/public/scripts/bookmarks.js +++ b/public/scripts/bookmarks.js @@ -35,7 +35,7 @@ export { showBookmarksButtons, }; -const bookmarkNameToken = 'Bookmark #'; +const bookmarkNameToken = 'Checkpoint #'; async function getExistingChatNames() { if (selected_group) { @@ -57,7 +57,7 @@ async function getExistingChatNames() { async function getBookmarkName() { const chatNames = await getExistingChatNames(); - const popupText = `

Enter the bookmark name:

+ const popupText = `

Enter the checkpoint name:

Leave empty to auto-generate.`; let name = await callPopup(popupText, 'input'); @@ -125,7 +125,7 @@ function showBookmarksButtons() { async function saveBookmarkMenu() { if (!chat.length) { - toastr.warning('The chat is empty.', 'Bookmark creation failed'); + toastr.warning('The chat is empty.', 'Checkpoint creation failed'); return; } @@ -167,12 +167,12 @@ export async function createBranch(mesId) { async function createNewBookmark(mesId) { if (!chat.length) { - toastr.warning('The chat is empty.', 'Bookmark creation failed'); + toastr.warning('The chat is empty.', 'Checkpoint creation failed'); return; } if (mesId < 0 || mesId >= chat.length) { - toastr.warning('Invalid message ID.', 'Bookmark creation failed'); + toastr.warning('Invalid message ID.', 'Checkpoint creation failed'); return; } @@ -183,7 +183,7 @@ async function createNewBookmark(mesId) { } if (lastMes.extra.bookmark_link) { - const confirm = await callPopup('Bookmark checkpoint for the last message already exists. Would you like to replace it?', 'confirm'); + const confirm = await callPopup('Checkpoint for the last message already exists. Would you like to replace it?', 'confirm'); if (!confirm) { return; @@ -210,7 +210,7 @@ async function createNewBookmark(mesId) { $(`.mes[mesid="${mesId}"]`).attr('bookmark_link', name); await saveChatConditional(); - toastr.success('Click the bookmark icon in the last message to open the checkpoint chat.', 'Bookmark created', { timeOut: 10000 }); + toastr.success('Click the flag icon in the last message to open the checkpoint chat.', 'Checkpoint created', { timeOut: 10000 }); } async function backToMainChat() {