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
684bdf51
Unverified
Commit
684bdf51
authored
Jan 17, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 17, 2024
Browse files
Merge pull request #506 from ollama-webui/model-size
feat: display model size
parents
74da8ebf
bb2563f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/lib/components/chat/ModelSelector.svelte
src/lib/components/chat/ModelSelector.svelte
+4
-1
No files found.
src/lib/components/chat/ModelSelector.svelte
View file @
684bdf51
...
@@ -45,7 +45,10 @@
...
@@ -45,7 +45,10 @@
{#if model.name === 'hr'}
{#if model.name === 'hr'}
<hr />
<hr />
{:else}
{:else}
<option value={model.name} class="text-gray-700 text-lg">{model.name}</option>
<option value={model.name} class="text-gray-700 text-lg"
>{model.name +
`${model.size ? ` (${(model.size / 1024 ** 3).toFixed(1)}GB)` : ''}`}</option
>
{/if}
{/if}
{/each}
{/each}
</select>
</select>
...
...
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