mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 06:45:24 +00:00
refac: #2506
This commit is contained in:
parent
f34fd3fbe1
commit
bfdf4f7a8a
2 changed files with 4 additions and 2 deletions
|
|
@ -622,7 +622,8 @@
|
||||||
if ($settings.saveChatHistory ?? true) {
|
if ($settings.saveChatHistory ?? true) {
|
||||||
chat = await updateChatById(localStorage.token, _chatId, {
|
chat = await updateChatById(localStorage.token, _chatId, {
|
||||||
messages: messages,
|
messages: messages,
|
||||||
history: history
|
history: history,
|
||||||
|
models: selectedModels
|
||||||
});
|
});
|
||||||
await chats.set(await getChatList(localStorage.token));
|
await chats.set(await getChatList(localStorage.token));
|
||||||
}
|
}
|
||||||
|
|
@ -814,6 +815,7 @@
|
||||||
if ($chatId == _chatId) {
|
if ($chatId == _chatId) {
|
||||||
if ($settings.saveChatHistory ?? true) {
|
if ($settings.saveChatHistory ?? true) {
|
||||||
chat = await updateChatById(localStorage.token, _chatId, {
|
chat = await updateChatById(localStorage.token, _chatId, {
|
||||||
|
models: selectedModels,
|
||||||
messages: messages,
|
messages: messages,
|
||||||
history: history
|
history: history
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -587,7 +587,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bg-white dark:bg-gray-900">
|
<div class="bg-white dark:bg-gray-900">
|
||||||
<div class="max-w-6xl px-2.5 md:px-16 mx-auto inset-x-0">
|
<div class="max-w-6xl px-2.5 md:px-6 mx-auto inset-x-0">
|
||||||
<div class=" pb-2">
|
<div class=" pb-2">
|
||||||
<input
|
<input
|
||||||
bind:this={filesInputElement}
|
bind:this={filesInputElement}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue