Skip to content

Commit e112333

Browse files
Algorithm5838github-actions[bot]
authored andcommitted
perf: remove leftover debug logs
1 parent 6a89ff8 commit e112333

5 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/lib/apis/streaming/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ async function* openAIStreamToIterator(
6060

6161
try {
6262
const parsedData = JSON.parse(data);
63-
console.log(parsedData);
64-
6563
if (parsedData.error) {
6664
yield { done: true, value: '', error: parsedData.error };
6765
break;

src/lib/components/chat/Chat.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,6 @@
499499
};
500500
501501
const chatEventHandler = async (event, cb) => {
502-
console.log(event);
503-
504502
if (event.chat_id === $chatId) {
505503
await tick();
506504
let message = history.messages[event.message_id];
@@ -1436,8 +1434,6 @@
14361434
const chatContent = chat.chat;
14371435
14381436
if (chatContent) {
1439-
console.log(chatContent);
1440-
14411437
selectedModels =
14421438
(chatContent?.models ?? undefined) !== undefined
14431439
? chatContent.models

src/lib/components/chat/Messages/CodeBlock.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@
237237
/\bimport\s+pytz\b|\bfrom\s+pytz\b/.test(code) ? 'pytz' : null
238238
].filter(Boolean);
239239
240-
console.log(packages);
241-
242240
// Reuse the shared Pyodide worker when code interpreter is active,
243241
// so files written here are immediately visible in PyodideFileNav.
244242
// Otherwise fall back to a throwaway worker.

src/lib/components/common/RichTextInput.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,6 @@
10941094
const isInList = isInside(['listItem', 'bulletList', 'orderedList', 'taskList']);
10951095
const isInHeading = isInside(['heading']);
10961096
1097-
console.log({ isInCodeBlock, isInList, isInHeading });
1098-
10991097
if (isInCodeBlock || isInList || isInHeading) {
11001098
// Let ProseMirror handle the normal Enter behavior
11011099
return false;

src/routes/s/[id]/+page.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@
100100
const chatContent = chat.chat;
101101
102102
if (chatContent) {
103-
console.log(chatContent);
104-
105103
selectedModels =
106104
(chatContent?.models ?? undefined) !== undefined
107105
? chatContent.models

0 commit comments

Comments
 (0)