← back to Exo
remove calls to updateTotalTokens in tiny, not sure why its there
4f4696e09d6ddcc03b02455f95d01170209331a6 · 2024-07-17 20:57:58 -0700 · Alex Cheema
Files touched
M tinychat/examples/tinychat/index.html
Diff
commit 4f4696e09d6ddcc03b02455f95d01170209331a6
Author: Alex Cheema <alexcheema123@gmail.com>
Date: Wed Jul 17 20:57:58 2024 -0700
remove calls to updateTotalTokens in tiny, not sure why its there
---
tinychat/examples/tinychat/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tinychat/examples/tinychat/index.html b/tinychat/examples/tinychat/index.html
index 64932b51..9d0b622d 100644
--- a/tinychat/examples/tinychat/index.html
+++ b/tinychat/examples/tinychat/index.html
@@ -58,7 +58,7 @@
<template x-for="_state in histories.toSorted((a, b) => b.time - a.time)">
<div x-data="{ otx: 0, trigger: 75 }" class="history" @click="
cstate = _state;
- updateTotalTokens(cstate.messages);
+ // updateTotalTokens(cstate.messages);
home = 1;
// ensure that going back in history will go back to home
window.history.pushState({}, '', '/');
@@ -154,10 +154,10 @@
if ($el.value !== '') {
const messages = [...cstate.messages];
messages.push({ role: 'user', content: $el.value });
- updateTotalTokens(messages);
+ // updateTotalTokens(messages);
} else {
if (cstate.messages.length === 0) total_tokens = 0;
- else updateTotalTokens(cstate.messages);
+ // else updateTotalTokens(cstate.messages);
}
" x-effect="
console.log(generating);
← d4e0a7d1 add endpoint to get number of encoded tokens
·
back to Exo
·
add alternative installation through install.sh 3778301b →