mirror of
				https://github.com/KoboldAI/KoboldAI-Client.git
				synced 2025-06-05 21:59:24 +02:00 
			
		
		
		
	Also apply comment formatting to prompt in refresh_story()
				
					
				
			This commit is contained in:
		| @@ -1779,7 +1779,7 @@ def applyoutputformatting(txt): | |||||||
| # Sends the current story content to the Game Screen | # Sends the current story content to the Game Screen | ||||||
| #==================================================================# | #==================================================================# | ||||||
| def refresh_story(): | def refresh_story(): | ||||||
|     text_parts = ['<chunk n="0" id="n0" tabindex="-1">', html.escape(vars.prompt), '</chunk>'] |     text_parts = ['<chunk n="0" id="n0" tabindex="-1">', vars.comregex_ui.sub(lambda m: '\n'.join('<comment>' + l + '</comment>' for l in m.group().split('\n')), html.escape(vars.prompt)), '</chunk>'] | ||||||
|     for idx in vars.actions: |     for idx in vars.actions: | ||||||
|         item = vars.actions[idx] |         item = vars.actions[idx] | ||||||
|         idx += 1 |         idx += 1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gnome Ann
					Gnome Ann