fix: new chat default settings

This commit is contained in:
Timothy J. Baek 2023-12-10 22:59:51 -08:00
parent 83e8db9b6a
commit 734ba8f762

View file

@ -76,6 +76,13 @@
selectedModels = $page.url.searchParams.get('models') selectedModels = $page.url.searchParams.get('models')
? $page.url.searchParams.get('models')?.split(',') ? $page.url.searchParams.get('models')?.split(',')
: $settings.models ?? ['']; : $settings.models ?? [''];
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
console.log(_settings);
settings.set({
...$settings,
..._settings
});
}; };
////////////////////////// //////////////////////////