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
5e32db1c
Unverified
Commit
5e32db1c
authored
Jan 16, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 16, 2024
Browse files
Merge pull request #486 from bhulston/fix/chat-imports
Fix/chat imports
parents
26f7a1c6
4b3acfa4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+1
-1
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+2
-2
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
5e32db1c
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
const importChats = async (_chats) => {
const importChats = async (_chats) => {
for (const chat of _chats) {
for (const chat of _chats) {
console.log(chat);
console.log(chat);
await createNewChat(localStorage.token, chat);
await createNewChat(localStorage.token,
chat.
chat);
}
}
await chats.set(await getChatList(localStorage.token));
await chats.set(await getChatList(localStorage.token));
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
5e32db1c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
import { page } from '$app/stores';
import { page } from '$app/stores';
import { models, modelfiles, user, settings, chats, chatId, config } from '$lib/stores';
import { models, modelfiles, user, settings, chats, chatId, config } from '$lib/stores';
import { copyToClipboard, splitStream } from '$lib/utils';
import { copyToClipboard, splitStream
, convertMessagesToHistory
} from '$lib/utils';
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
import { createNewChat, getChatById, getChatList, updateChatById } from '$lib/apis/chats';
import { createNewChat, getChatById, getChatList, updateChatById } from '$lib/apis/chats';
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
selectedModels =
selectedModels =
(chatContent?.models ?? undefined) !== undefined
(chatContent?.models ?? undefined) !== undefined
? chatContent.models
? chatContent.models
: [chatContent.model ?? ''];
: [chatContent.model
s
?? ''];
history =
history =
(chatContent?.history ?? undefined) !== undefined
(chatContent?.history ?? undefined) !== undefined
? chatContent.history
? chatContent.history
...
...
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