Commit b870fd11 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: task model options

parent ec36493d
...@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment