|
@@ -12,7 +12,7 @@
|
|
|
|
|
|
import { deleteModel, getOllamaVersion, pullModel } from '$lib/apis/ollama';
|
|
|
|
|
|
- import { user, MODEL_DOWNLOAD_POOL, models, mobile, temporaryChatEnabled } from '$lib/stores';
|
|
|
+ import { user, MODEL_DOWNLOAD_POOL, models, mobile, temporaryChatEnabled, Model } from '$lib/stores';
|
|
|
import { toast } from 'svelte-sonner';
|
|
|
import { capitalizeFirstLetter, sanitizeResponseContent, splitStream } from '$lib/utils';
|
|
|
import { getModels } from '$lib/apis';
|
|
@@ -35,9 +35,10 @@
|
|
|
export let items: {
|
|
|
label: string;
|
|
|
value: string;
|
|
|
+ model: Model;
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
[key: string]: any;
|
|
|
- } = [];
|
|
|
+ }[] = [];
|
|
|
|
|
|
export let className = 'w-[32rem]';
|
|
|
|