mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-21 18:52:02 +00:00
another fix for lite
This commit is contained in:
parent
afa41c24f5
commit
038779af41
1 changed files with 9 additions and 1 deletions
10
klite.embd
10
klite.embd
|
|
@ -10318,7 +10318,7 @@ Current version: 111
|
|||
//runs every second
|
||||
var idle_timer = 0; //used in chat mode to send multi replies
|
||||
var idle_triggered_counter = 0;
|
||||
var idle_backoff_array = [15000,60000,300000,120000];
|
||||
var idle_backoff_array = [15000,60000,300000,1200000];
|
||||
function poll_background_tasks()
|
||||
{
|
||||
let idle_timer_max = 0;
|
||||
|
|
@ -10341,6 +10341,14 @@ Current version: 111
|
|||
if (idle_timer > idle_timer_max) {
|
||||
idle_timer = 0;
|
||||
let nextcounter = ++idle_triggered_counter;
|
||||
if(localsettings.opmode == 4)
|
||||
{
|
||||
if (!localsettings.placeholder_tags) {
|
||||
pending_context_preinjection = get_instruct_endtag(false);
|
||||
} else {
|
||||
pending_context_preinjection = instructendplaceholder;
|
||||
}
|
||||
}
|
||||
submit_generation();
|
||||
idle_triggered_counter = nextcounter;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue