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
81bfb97c
"...resnet50_tensorflow.git" did not exist on "d86111510aae9c0ed90db9f3bb4a223b85a23355"
Commit
81bfb97c
authored
Jan 17, 2024
by
Brandon Hulston
Browse files
Make sure model is saved in DB for imported chats (or chats with no model saved already)
parent
415777ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+8
-1
No files found.
src/routes/(app)/c/[id]/+page.svelte
View file @
81bfb97c
...
...
@@ -200,8 +200,15 @@
await chatId.set('local');
}
await tick();
}
} else if (chat.chat["models"][0] == "") {
// If model is not saved in DB, then save selectedmodel when message is sent
chat = await updateChatById(localStorage.token, $chatId, {
models: selectedModels
});
await chats.set(await getChatList(localStorage.token));
}
// Reset chat input textarea
prompt = '';
files = [];
...
...
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