From c38c6b867beb06451fe4b45a90d62dc3720936e0 Mon Sep 17 00:00:00 2001 From: Maria Koval Date: Sun, 29 Sep 2024 20:14:49 -0300 Subject: [PATCH] bug fix of issue #1 --- .../thumbnail.png/ChatThumbnail.svelte | 23 +++++++++++++++++-- .../thumbnail.png/ModelThumbnail.svelte | 22 ++++++++++++++++-- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/src/routes/assistant/[assistantId]/thumbnail.png/ChatThumbnail.svelte b/src/routes/assistant/[assistantId]/thumbnail.png/ChatThumbnail.svelte index 76941629132..85d73b52666 100644 --- a/src/routes/assistant/[assistantId]/thumbnail.png/ChatThumbnail.svelte +++ b/src/routes/assistant/[assistantId]/thumbnail.png/ChatThumbnail.svelte @@ -4,7 +4,9 @@ export let createdByName: string | undefined; export let avatar: string | undefined; - import logo from "../../../../../static/huggingchat/logo.png?raw"; + import { page } from "$app/stores"; + import { env as envPublic } from "$env/dynamic/public"; + import { base } from "$app/paths";
@@ -16,7 +18,24 @@

- {@html logo} + {#if envPublic.PUBLIC_APP_ASSETS === "chatui"} + + + + {:else} + {envPublic.PUBLIC_APP_NAME} logo + {/if} AI assistant

diff --git a/src/routes/models/[...model]/thumbnail.png/ModelThumbnail.svelte b/src/routes/models/[...model]/thumbnail.png/ModelThumbnail.svelte index 162df944c51..3b4bf727ebd 100644 --- a/src/routes/models/[...model]/thumbnail.png/ModelThumbnail.svelte +++ b/src/routes/models/[...model]/thumbnail.png/ModelThumbnail.svelte @@ -1,11 +1,12 @@
@@ -31,7 +32,24 @@
HuggingChat