Skip to content

Commit

Permalink
remove redundant frontend logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCheema committed Jan 25, 2025
1 parent fdd05ba commit fe368aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions exo/tinychat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ <h3 x-text="`Download ${index + 1}`"></h3>
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);
Expand All @@ -411,13 +410,11 @@ <h3 x-text="`Download ${index + 1}`"></h3>
*/
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));
Expand Down
1 change: 0 additions & 1 deletion exo/tinychat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe368aa

Please sign in to comment.