Vector storage: skip for quiet prompts
| @@ -600,6 +600,11 @@ async function vectorizeFile(fileText, fileName, collectionId, chunkSize, overla | ||
| 600 | 600 | */ |
| 601 | 601 | async function rearrangeChat(chat, _contextSize, _abort, type) { |
| 602 | 602 | try { |
| 603 | + if (type === 'quiet') { | |
| 604 | + console.debug('Vectors: Skipping quiet prompt'); | |
| 605 | + return; | |
| 606 | + } | |
| 607 | + | |
| 603 | 608 | // Clear the extension prompt |
| 604 | 609 | setExtensionPrompt(EXTENSION_PROMPT_TAG, '', settings.position, settings.depth, settings.include_wi); |
| 605 | 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 | 617 | await activateWorldInfo(chat); |
| 613 | 618 | } |
| 614 | 619 | |
| 615 | 620 | if (!settings.enabled_chats || type === 'quiet') { |
| 616 | 621 | return; |
| 617 | 622 | } |
| 618 | 623 | |