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
8f570bc2
Commit
8f570bc2
authored
Jan 06, 2024
by
Anuraag Jain
Browse files
refac: code cleanup
parent
fd42422d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+2
-18
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
8f570bc2
...
@@ -50,7 +50,8 @@
...
@@ -50,7 +50,8 @@
let theme = 'dark';
let theme = 'dark';
let notificationEnabled = false;
let notificationEnabled = false;
let system = '';
let system = '';
const modelDownloadQueue = queue((task:{modelName: string}, cb) => pullModelHandlerProcessor({modelName: task.modelName, callback: cb}), 3);
const MAX_PARALLEL_DOWNLOADS = 3;
const modelDownloadQueue = queue((task:{modelName: string}, cb) => pullModelHandlerProcessor({modelName: task.modelName, callback: cb}), MAX_PARALLEL_DOWNLOADS);
let modelDownloadStatus: Record<string, any> = {};
let modelDownloadStatus: Record<string, any> = {};
// Advanced
// Advanced
...
@@ -1187,23 +1188,6 @@
...
@@ -1187,23 +1188,6 @@
target="_blank">click here.</a
target="_blank">click here.</a
>
>
</div>
</div>
<!-- {#if pullProgress !== null} -->
<!-- <div class="mt-2">
<div class=" mb-2 text-xs">Pull Progress</div>
<div class="w-full rounded-full dark:bg-gray-800 bg-gray-300">
<div
class="dark:bg-gray-600 bg-green-600 text-xs font-medium text-blue-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max(15, 20 ?? 0)}%"
>
{20 ?? 0}%
</div>
</div>
<div class="mt-1 text-xs dark:text-gray-500" style="font-size: 0.5rem;">
{digest}
</div>
</div> -->
<!-- {/if} -->
</div>
</div>
{#if Object.keys(modelDownloadStatus).length > 0}
{#if Object.keys(modelDownloadStatus).length > 0}
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
...
...
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