Extend debounce duration of logprobs renderer
This commit is contained in:
parent
9287ff18de
commit
eaadfea639
|
@ -2666,8 +2666,8 @@ class StreamingProcessor {
|
|||
}
|
||||
|
||||
const continueMsg = this.type === 'continue' ? this.messageAlreadyGenerated : undefined;
|
||||
await saveChatConditional();
|
||||
saveLogprobsForActiveMessage(this.messageLogprobs.filter(Boolean), continueMsg);
|
||||
await saveChatConditional();
|
||||
activateSendButtons();
|
||||
showSwipeButtons();
|
||||
setGenerationProgress(0);
|
||||
|
|
|
@ -466,7 +466,7 @@ function convertTokenIdLogprobsToText(input) {
|
|||
}
|
||||
|
||||
export function initLogprobs() {
|
||||
const debouncedRender = debounce(renderAlternativeTokensView, 250);
|
||||
const debouncedRender = debounce(renderAlternativeTokensView, 500);
|
||||
$('#logprobsViewerClose').click(onToggleLogprobsPanel);
|
||||
$('#option_toggle_logprobs').click(onToggleLogprobsPanel);
|
||||
eventSource.on(event_types.CHAT_CHANGED, debouncedRender);
|
||||
|
|
Loading…
Reference in New Issue