feat: model download from model selector

This commit is contained in:
Timothy J. Baek
2024-03-24 23:03:26 -07:00
parent 9560f9196d
commit c19ea89a1d
4 changed files with 367 additions and 32 deletions

View File

@@ -3,7 +3,7 @@
import { models, showSettings, settings, user } from '$lib/stores';
import { onMount, tick, getContext } from 'svelte';
import { toast } from 'svelte-sonner';
import Select from '../common/Select.svelte';
import Selector from './ModelSelector/Selector.svelte';
const i18n = getContext('i18n');
@@ -38,7 +38,7 @@
<div class="flex w-full">
<div class="overflow-hidden w-full">
<div class="mr-2 max-w-full">
<Select
<Selector
placeholder={$i18n.t('Select a model')}
items={$models
.filter((model) => model.name !== 'hr')