diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 5aceaccef..99d9a39fb 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -389,7 +389,7 @@ {/if} -
+
diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 4c1e3c2b5..c8df5ce8c 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -277,7 +277,7 @@ // }; -
+
{#if messages.length == 0} {:else} -
+
{#key chatId} {#each messages as message, messageIdx}
@@ -355,7 +355,7 @@ {/each} {#if bottomPadding} -
+
{/if} {/key}
diff --git a/src/lib/components/chat/Messages/Placeholder.svelte b/src/lib/components/chat/Messages/Placeholder.svelte index d15014c8f..2004cedce 100644 --- a/src/lib/components/chat/Messages/Placeholder.svelte +++ b/src/lib/components/chat/Messages/Placeholder.svelte @@ -24,68 +24,66 @@ {#if models.length > 0} -
-
-
-
- {#each models as model, modelIdx} - - {/each} -
-
-
-
- {#if modelfile} - - {modelfile.title} - -
- {modelfile.desc} -
- {#if modelfile.user} - +
+
+
+ {#each models as model, modelIdx} + + {/each} +
+
+
+
+ {#if modelfile} + + {modelfile.title} + +
+ {modelfile.desc} +
+ {#if modelfile.user} + {/if} -
-
+ {:else} +
{$i18n.t('Hello, {{name}}', { name: $user.name })}
-
- +
+ {$i18n.t('How can I help you today?')} +
+ {/if}
+ +
+ +
{/if}