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
3be1cb98
Commit
3be1cb98
authored
Jun 07, 2024
by
Timothy J. Baek
Browse files
fix: ollama embedding list
parent
c2a7e7f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/lib/components/documents/Settings/General.svelte
src/lib/components/documents/Settings/General.svelte
+2
-4
No files found.
src/lib/components/documents/Settings/General.svelte
View file @
3be1cb98
...
@@ -350,10 +350,8 @@
...
@@ -350,10 +350,8 @@
{#if !embeddingModel}
{#if !embeddingModel}
<option value="" disabled selected>{$i18n.t('Select a model')}</option>
<option value="" disabled selected>{$i18n.t('Select a model')}</option>
{/if}
{/if}
{#each $models.filter((m) => m.id && !m.external) as model}
{#each $models.filter((m) => m.id && m.ollama && !(m?.preset ?? false)) as model}
<option value={model.name} class="bg-gray-100 dark:bg-gray-700"
<option value={model.id} class="bg-gray-100 dark:bg-gray-700">{model.name}</option>
>{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}</option
>
{/each}
{/each}
</select>
</select>
</div>
</div>
...
...
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