mirror of
https://github.com/open-webui/open-webui
synced 2025-02-21 12:29:29 +00:00
fix: new chat settings issue
This commit is contained in:
parent
c342aa2f30
commit
b7ff3af445
@ -84,7 +84,6 @@
|
|||||||
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
||||||
console.log(_settings);
|
console.log(_settings);
|
||||||
settings.set({
|
settings.set({
|
||||||
...$settings,
|
|
||||||
..._settings
|
..._settings
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -82,10 +82,11 @@
|
|||||||
: convertMessagesToHistory(chat.messages);
|
: convertMessagesToHistory(chat.messages);
|
||||||
title = chat.title;
|
title = chat.title;
|
||||||
|
|
||||||
|
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
||||||
await settings.set({
|
await settings.set({
|
||||||
...$settings,
|
..._settings,
|
||||||
system: chat.system ?? $settings.system,
|
system: chat.system ?? _settings.system,
|
||||||
options: chat.options ?? $settings.options
|
options: chat.options ?? _settings.options
|
||||||
});
|
});
|
||||||
autoScroll = true;
|
autoScroll = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user