forked from open-webui/open-webui
fix: new chat default settings
This commit is contained in:
parent
83e8db9b6a
commit
734ba8f762
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue