Browse Source

remove redundant frontend logs

Alex Cheema 9 months ago
parent
commit
fe368aa2b6
2 changed files with 0 additions and 4 deletions
  1. 0 3
      exo/tinychat/index.html
  2. 0 1
      exo/tinychat/index.js

+ 0 - 3
exo/tinychat/index.html

@@ -387,7 +387,6 @@
     rows="1"
     x-autosize=""
     x-effect="
-        console.log(generating);
         if (!generating) $nextTick(() => {
             $el.focus();
             setTimeout(() => $refs.messages.scrollTo({ top: $refs.messages.scrollHeight, behavior: 'smooth' }), 100);
@@ -411,13 +410,11 @@
    */
   function transformMessageContent(message) {
     let text = message.content;
-    console.log('Processing message content:', text);
 
     // First replace think blocks
     text = text.replace(
       /<think>([\s\S]*?)(?:<\/think>|$)/g,
       (match, body) => {
-        console.log('Found think block with content:', body);
         const isComplete = match.includes('</think>');
         const spinnerClass = isComplete ? '' : ' thinking';
         const parsedBody = DOMPurify.sanitize(marked.parse(body));

+ 0 - 1
exo/tinychat/index.js

@@ -268,7 +268,6 @@ document.addEventListener("alpine:init", () => {
               // Assume non-binary data (text) comes first
               const chunk = decoder.decode(value, { stream: true });
               const parsed = JSON.parse(chunk);
-              console.log(parsed)
   
               if (parsed.progress) {
                 if (!gottenFirstChunk) {