mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Fix character name appending on user continue
This commit is contained in:
		| @@ -3294,13 +3294,15 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, | ||||
|                 } | ||||
|  | ||||
|                 // Add character's name | ||||
|                 // Force name append on continue | ||||
|                 // Force name append on continue (if not continuing on user message) | ||||
|                 if (!isInstruct && force_name2) { | ||||
|                     if (!lastMesString.endsWith('\n')) { | ||||
|                         lastMesString += '\n'; | ||||
|                     } | ||||
|                     if (!isContinue || !(chat[chat.length - 1]?.is_user)) { | ||||
|                         lastMesString += `${name2}:`; | ||||
|                     } | ||||
|                 } | ||||
|  | ||||
|                 return lastMesString; | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user