Merge pull request #506 from ollama-webui/model-size

feat: display model size
This commit is contained in:
Timothy Jaeryang Baek 2024-01-17 17:58:47 -08:00 committed by GitHub
commit 684bdf5151
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,10 @@
{#if model.name === 'hr'}
<hr />
{: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}
{/each}
</select>