From 341e632f557f939abef273f00ff2498be1094720 Mon Sep 17 00:00:00 2001 From: Nathan Sarrazin Date: Fri, 11 Oct 2024 10:44:16 +0200 Subject: [PATCH] fix: upload of files on multimodal assistant on first message (#1513) there was a bug that prevented users from uploading images to assistants before starting a conversation --- src/lib/components/chat/ChatIntroduction.svelte | 11 ++--------- src/lib/components/chat/ChatWindow.svelte | 1 - src/routes/+page.svelte | 9 ++++++++- 3 files changed, 10 insertions(+), 11 deletions(-) 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}