mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-15 11:29:43 +00:00
updated lite
This commit is contained in:
parent
603fe941c1
commit
fdc54efcf0
1 changed files with 6 additions and 2 deletions
|
@ -4801,7 +4801,7 @@ Current version: 111
|
||||||
|
|
||||||
//check for tavernai fields
|
//check for tavernai fields
|
||||||
if (new_loaded_storyobj.name != null || new_loaded_storyobj.description != null ||
|
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);
|
load_tavern_obj(new_loaded_storyobj);
|
||||||
}
|
}
|
||||||
else if (new_loaded_storyobj.char_name != null || new_loaded_storyobj.char_persona != null) {
|
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()))
|
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;
|
truncated_context += pending_context_preinjection;
|
||||||
|
@ -10348,6 +10348,10 @@ Current version: 111
|
||||||
} else {
|
} else {
|
||||||
pending_context_preinjection = instructendplaceholder;
|
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();
|
submit_generation();
|
||||||
idle_triggered_counter = nextcounter;
|
idle_triggered_counter = nextcounter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue