From f8cf43c0f7277d9fcaec98e4f700142a7f0d0ff8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 25 Feb 2024 16:13:34 -0800 Subject: [PATCH] refac: console logs removed --- src/lib/apis/openai/index.ts | 1 - src/routes/(app)/+page.svelte | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/lib/apis/openai/index.ts b/src/lib/apis/openai/index.ts index 41445581..3a629eb3 100644 --- a/src/lib/apis/openai/index.ts +++ b/src/lib/apis/openai/index.ts @@ -150,7 +150,6 @@ export const getOpenAIModels = async (token: string = '') => { return res.json(); }) .catch((err) => { - console.log(err); error = `OpenAI: ${err?.error?.message ?? 'Network Problem'}`; return []; }); diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index f2f4d69d..7d424be4 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -104,13 +104,8 @@ await cancelChatCompletion(localStorage.token, currentRequestId); currentRequestId = null; } - window.history.replaceState(history.state, '', `/`); - - console.log('initNewChat'); - await chatId.set(''); - console.log($chatId); autoScroll = true; @@ -121,8 +116,6 @@ currentId: null }; - console.log($config); - if ($page.url.searchParams.get('models')) { selectedModels = $page.url.searchParams.get('models')?.split(','); } else if ($settings?.models) {