Spaces:
Runtime error
Runtime error
handle when /api/model err
Browse filesFiles changed (2)
12345674567<script lang="ts"> import type { Conversation } from "$lib/types";
import { GENERATION_CONFIG_KEYS, GENERATION_CONFIG_SETTINGS, } from "./generationConfigSettings"; import { GENERATION_CONFIG_KEYS, GENERATION_CONFIG_SETTINGS } from "./generationConfigSettings";
export let conversation: Conversation; export let classNames = "";11 unmodified lines1213141516171819202111 unmodified lines Authorization: `Bearer ${HF_TOKEN}`, }, }); if (!res.ok) { console.error(`Error fetching warm models`, res.status, res.statusText); return { models: [] }; } const compatibleModels: ModelEntry[] = await res.json(); compatibleModels.sort((a, b) => a.id.toLowerCase().localeCompare(b.id.toLowerCase()));
src/lib/components/InferencePlayground/InferencePlaygroundGenerationConfig.svelte+1-4
src/routes/+page.server.ts+4