Vector storage: skip for quiet prompts

eff4da42c500171b97427f3343fe1fe7f72aa751

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +6 -1Showing whitespace changes
public/scripts/extensions/vectors/index.js+6 -1
@@ -600,6 +600,11 @@ async function vectorizeFile(fileText, fileName, collectionId, chunkSize, overla
600 */600 */
601async function rearrangeChat(chat, _contextSize, _abort, type) {601async function rearrangeChat(chat, _contextSize, _abort, type) {
602 try {602 try {
603 if (type === 'quiet') {
604 console.debug('Vectors: Skipping quiet prompt');
605 return;
606 }
607
603 // Clear the extension prompt608 // Clear the extension prompt
604 setExtensionPrompt(EXTENSION_PROMPT_TAG, '', settings.position, settings.depth, settings.include_wi);609 setExtensionPrompt(EXTENSION_PROMPT_TAG, '', settings.position, settings.depth, settings.include_wi);
605 setExtensionPrompt(EXTENSION_PROMPT_TAG_DB, '', settings.file_position_db, settings.file_depth_db, settings.include_wi, settings.file_depth_role_db);610 setExtensionPrompt(EXTENSION_PROMPT_TAG_DB, '', settings.file_position_db, settings.file_depth_db, settings.include_wi, settings.file_depth_role_db);
@@ -612,7 +617,7 @@ async function rearrangeChat(chat, _contextSize, _abort, type) {
612 await activateWorldInfo(chat);617 await activateWorldInfo(chat);
613 }618 }
614619
615 if (!settings.enabled_chats || type === 'quiet') {620 if (!settings.enabled_chats) {
616 return;621 return;
617 }622 }
618623