Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b7ff3af4
"...composable_kernel_rocm.git" did not exist on "ccf10794dad5aa37545508aa81a80067089dec13"
Commit
b7ff3af4
authored
Dec 14, 2023
by
Timothy J. Baek
Browse files
fix: new chat settings issue
parent
c342aa2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+0
-1
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+4
-3
No files found.
src/routes/(app)/+page.svelte
View file @
b7ff3af4
...
@@ -84,7 +84,6 @@
...
@@ -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
});
});
};
};
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
b7ff3af4
...
@@ -82,10 +82,11 @@
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment