Selaa lähdekoodia

remove calls to updateTotalTokens in tiny, not sure why its there

Alex Cheema 1 vuosi sitten
vanhempi
commit
4f4696e09d
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      tinychat/examples/tinychat/index.html

+ 3 - 3
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);