mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	#456 Insert A/N with frequency 1 no matter the chat length
This commit is contained in:
		| @@ -119,8 +119,8 @@ async function moduleWorker() { | |||||||
|     // take the count of messages |     // take the count of messages | ||||||
|     let lastMessageNumber = Array.isArray(context.chat) && context.chat.length ? context.chat.filter(m => m.is_user).length : 0; |     let lastMessageNumber = Array.isArray(context.chat) && context.chat.length ? context.chat.filter(m => m.is_user).length : 0; | ||||||
|  |  | ||||||
|     // special case for new chat |     // interval 1 should be inserted no matter what | ||||||
|     if (Array.isArray(context.chat) && context.chat.length === 1) { |     if (chat_metadata[metadata_keys.interval] === 1) { | ||||||
|         lastMessageNumber = 1; |         lastMessageNumber = 1; | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -176,7 +176,7 @@ async function moduleWorker() { | |||||||
|  |  | ||||||
|                     <label for="extension_floating_interval">Insertion Frequency</label> |                     <label for="extension_floating_interval">Insertion Frequency</label> | ||||||
|  |  | ||||||
|                     <input id="extension_floating_interval" class="text_pole widthUnset" type="number" min="0" max="999"  /><small> (0 = Disable)</small> |                     <input id="extension_floating_interval" class="text_pole widthUnset" type="number" min="0" max="999"  /><small> (0 = Disable, 1 = Always)</small> | ||||||
|                     <br> |                     <br> | ||||||
|  |  | ||||||
|                     <span>User inputs until next insertion: <span id="extension_floating_counter">(disabled)</span></span> |                     <span>User inputs until next insertion: <span id="extension_floating_counter">(disabled)</span></span> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user