Jelajahi Sumber

remove redundant frontend logs

Alex Cheema 1 tahun lalu
induk
melakukan
fe368aa2b6
2 mengubah file dengan 0 tambahan dan 4 penghapusan
  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"
     rows="1"
     x-autosize=""
     x-autosize=""
     x-effect="
     x-effect="
-        console.log(generating);
         if (!generating) $nextTick(() => {
         if (!generating) $nextTick(() => {
             $el.focus();
             $el.focus();
             setTimeout(() => $refs.messages.scrollTo({ top: $refs.messages.scrollHeight, behavior: 'smooth' }), 100);
             setTimeout(() => $refs.messages.scrollTo({ top: $refs.messages.scrollHeight, behavior: 'smooth' }), 100);
@@ -411,13 +410,11 @@
    */
    */
   function transformMessageContent(message) {
   function transformMessageContent(message) {
     let text = message.content;
     let text = message.content;
-    console.log('Processing message content:', text);
 
 
     // First replace think blocks
     // First replace think blocks
     text = text.replace(
     text = text.replace(
       /<think>([\s\S]*?)(?:<\/think>|$)/g,
       /<think>([\s\S]*?)(?:<\/think>|$)/g,
       (match, body) => {
       (match, body) => {
-        console.log('Found think block with content:', body);
         const isComplete = match.includes('</think>');
         const isComplete = match.includes('</think>');
         const spinnerClass = isComplete ? '' : ' thinking';
         const spinnerClass = isComplete ? '' : ' thinking';
         const parsedBody = DOMPurify.sanitize(marked.parse(body));
         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
               // Assume non-binary data (text) comes first
               const chunk = decoder.decode(value, { stream: true });
               const chunk = decoder.decode(value, { stream: true });
               const parsed = JSON.parse(chunk);
               const parsed = JSON.parse(chunk);
-              console.log(parsed)
   
   
               if (parsed.progress) {
               if (parsed.progress) {
                 if (!gottenFirstChunk) {
                 if (!gottenFirstChunk) {