Fix type errors.

This commit is contained in:
Zhuoran
2024-08-20 08:44:09 +08:00
parent a3b6654cbb
commit fd26e5635d
7 changed files with 28 additions and 7 deletions

View File

@@ -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]';