Skip to content

Commit c9be439

Browse files
committed
perf: remove leftover debug logs
1 parent c4017ba commit c9be439

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
@@ -537,8 +537,6 @@
537537
};
538538
539539
const chatEventHandler = async (event, cb) => {
540-
console.log(event);
541-
542540
if (event.chat_id === $chatId) {
543541
await tick();
544542
let message = history.messages[event.message_id];
@@ -1479,8 +1477,6 @@
14791477
const chatContent = chat.chat;
14801478
14811479
if (chatContent) {
1482-
console.log(chatContent);
1483-
14841480
selectedModels =
14851481
(chatContent?.models ?? undefined) !== undefined
14861482
? 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)