diff --git a/klite.embd b/klite.embd index 8b3ab4d62..a0199ad3a 100644 --- a/klite.embd +++ b/klite.embd @@ -4801,7 +4801,7 @@ Current version: 111 //check for tavernai fields if (new_loaded_storyobj.name != null || new_loaded_storyobj.description != null || - new_loaded_storyobj.personality != null) { + new_loaded_storyobj.personality != null || new_loaded_storyobj.spec=="chara_card_v2") { load_tavern_obj(new_loaded_storyobj); } else if (new_loaded_storyobj.char_name != null || new_loaded_storyobj.char_persona != null) { @@ -8932,7 +8932,7 @@ Current version: 111 if(truncated_context.toLowerCase().trim().endsWith(endmatcher.toLowerCase().trim())) { - pending_context_preinjection += "["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"] "; + pending_context_preinjection += "["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"]"; } } truncated_context += pending_context_preinjection; @@ -10348,6 +10348,10 @@ Current version: 111 } else { pending_context_preinjection = instructendplaceholder; } + if(localsettings.inject_timestamps_instruct) + { + pending_context_preinjection += "["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"]"; + } } submit_generation(); idle_triggered_counter = nextcounter;