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
415777ec
"docs/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "36042435ff2eac9291b160637b6bbb38e0c63af5"
Commit
415777ec
authored
Jan 17, 2024
by
Brandon Hulston
Browse files
Add error catching for import
parent
27d5eb46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+5
-1
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
415777ec
...
@@ -133,7 +133,11 @@
...
@@ -133,7 +133,11 @@
let chats = JSON.parse(event.target.result);
let chats = JSON.parse(event.target.result);
console.log(chats);
console.log(chats);
if (getImportOrigin(chats) == 'gpt') {
if (getImportOrigin(chats) == 'gpt') {
chats = convertGptChats(chats);
try {
chats = convertGptChats(chats);
} catch (error) {
console.log("Unable to import chats:", error);
}
}
}
importChats(chats);
importChats(chats);
};
};
...
...
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