diff --git a/src/lib/components/chat/ChatIntroduction.svelte b/src/lib/components/chat/ChatIntroduction.svelte index caa0917aa89..729a21ad3e3 100644 --- a/src/lib/components/chat/ChatIntroduction.svelte +++ b/src/lib/components/chat/ChatIntroduction.svelte @@ -6,17 +6,10 @@ import AnnouncementBanner from "../AnnouncementBanner.svelte"; import type { Model } from "$lib/types/Model"; import ModelCardMetadata from "../ModelCardMetadata.svelte"; - import { findCurrentModel } from "$lib/utils/models"; import { base } from "$app/paths"; - import { useSettingsStore } from "$lib/stores/settings"; import JSON5 from "json5"; export let currentModel: Model; - export let models: Model[]; - - const settings = useSettingsStore(); - - $: currentModelMetadata = findCurrentModel(models, $settings.activeModel); const announcementBanners = envPublic.PUBLIC_ANNOUNCEMENT_BANNERS ? JSON5.parse(envPublic.PUBLIC_ANNOUNCEMENT_BANNERS) @@ -79,11 +72,11 @@ - {#if currentModelMetadata.promptExamples} + {#if currentModel.promptExamples}

Examples

- {#each currentModelMetadata.promptExamples as example} + {#each currentModel.promptExamples as example}