Skip to content

Commit 52834ce

Browse files
committed
Always display model at the bottom
1 parent 732e338 commit 52834ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/lib/components/chat/ChatWindow.svelte

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,21 @@
234234
class="mt-2 flex justify-between self-stretch px-1 text-xs text-gray-400/90 max-md:mb-2 max-sm:gap-2"
235235
>
236236
<p>
237+
Model:
237238
{#if !assistant}
238-
Model: <a
239+
<a
239240
href={currentModel.modelUrl || "https://huggingface.co/" + currentModel.name}
240241
target="_blank"
241242
rel="noreferrer"
242243
class="hover:underline">{currentModel.displayName}</a
243-
> <span class="max-sm:hidden">·</span>{/if}<br class="sm:hidden" /> Generated content may
244+
>{:else}
245+
{@const model = models.find((m) => m.id === assistant?.modelId)}
246+
<a
247+
href={model?.modelUrl || "https://huggingface.co/" + model?.name}
248+
target="_blank"
249+
rel="noreferrer"
250+
class="hover:underline">{model?.displayName}</a
251+
>{/if} <span class="max-sm:hidden">·</span><br class="sm:hidden" /> Generated content may
244252
be inaccurate or false.
245253
</p>
246254
{#if messages.length}

0 commit comments

Comments
 (0)