From 734ba8f762e6eded1b7d922b39a53842ecab0626 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 10 Dec 2023 22:59:51 -0800 Subject: [PATCH] fix: new chat default settings --- src/routes/(app)/+page.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 43cd3516..c0d210fc 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -76,6 +76,13 @@ selectedModels = $page.url.searchParams.get('models') ? $page.url.searchParams.get('models')?.split(',') : $settings.models ?? ['']; + + let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}'); + console.log(_settings); + settings.set({ + ...$settings, + ..._settings + }); }; //////////////////////////