Skip to content

Commit

Permalink
Don't fill predict placeholders if switching tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lmg-anon committed Jun 2, 2024
1 parent fbf1b72 commit 834311c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mikupad.html
Original file line number Diff line number Diff line change
Expand Up @@ -4142,7 +4142,7 @@
setTokens(t => t + (chunk?.completion_probabilities?.length ?? 1));
return true;
});

return true;
}

Expand All @@ -4159,8 +4159,8 @@
return false;
}

// predict the fill placeholder if it exists.
if (!callback && await fillPredict())
// predict the fill placeholder if it is present in the prompt.
if (!callback && !restartedPredict && await fillPredict())
return true;

const ac = new AbortController();
Expand Down

0 comments on commit 834311c

Please sign in to comment.