Commit b7ff3af4 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: new chat settings issue

parent c342aa2f
......@@ -84,7 +84,6 @@
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
console.log(_settings);
settings.set({
...$settings,
..._settings
});
};
......
......@@ -82,10 +82,11 @@
: convertMessagesToHistory(chat.messages);
title = chat.title;
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
await settings.set({
...$settings,
system: chat.system ?? $settings.system,
options: chat.options ?? $settings.options
..._settings,
system: chat.system ?? _settings.system,
options: chat.options ?? _settings.options
});
autoScroll = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment