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
b870fd11
Commit
b870fd11
authored
May 27, 2024
by
Timothy J. Baek
Browse files
fix: task model options
parent
ec36493d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/lib/components/chat/Settings/Interface.svelte
src/lib/components/chat/Settings/Interface.svelte
+7
-11
No files found.
src/lib/components/chat/Settings/Interface.svelte
View file @
b870fd11
...
@@ -313,12 +313,10 @@
...
@@ -313,12 +313,10 @@
placeholder={$i18n.t('Select a model')}
placeholder={$i18n.t('Select a model')}
>
>
<option value="" selected>{$i18n.t('Current Model')}</option>
<option value="" selected>{$i18n.t('Current Model')}</option>
{#each $models as model}
{#each $models.filter((m) => m.owned_by === 'ollama') as model}
{#if model.size != null}
<option value={model.id} class="bg-gray-100 dark:bg-gray-700">
<option value={model.name} class="bg-gray-100 dark:bg-gray-700">
{model.name}
{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}
</option>
</option>
{/if}
{/each}
{/each}
</select>
</select>
</div>
</div>
...
@@ -332,11 +330,9 @@
...
@@ -332,11 +330,9 @@
>
>
<option value="" selected>{$i18n.t('Current Model')}</option>
<option value="" selected>{$i18n.t('Current Model')}</option>
{#each $models as model}
{#each $models as model}
{#if model.name !== 'hr'}
<option value={model.id} class="bg-gray-100 dark:bg-gray-700">
<option value={model.name} class="bg-gray-100 dark:bg-gray-700">
{model.name}
{model.name}
</option>
</option>
{/if}
{/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