mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Don't wrap empty sysprompts in instruct mode
This commit is contained in:
		| @@ -384,6 +384,10 @@ export function formatInstructModeChat(name, mes, isUser, isNarrator, forceAvata | |||||||
|  * @returns {string} Formatted instruct mode system prompt. |  * @returns {string} Formatted instruct mode system prompt. | ||||||
|  */ |  */ | ||||||
| export function formatInstructModeSystemPrompt(systemPrompt) { | export function formatInstructModeSystemPrompt(systemPrompt) { | ||||||
|  |     if (!systemPrompt) { | ||||||
|  |         return ''; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     const separator = power_user.instruct.wrap ? '\n' : ''; |     const separator = power_user.instruct.wrap ? '\n' : ''; | ||||||
|  |  | ||||||
|     if (power_user.instruct.system_sequence_prefix) { |     if (power_user.instruct.system_sequence_prefix) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user