diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index fd0e1bbac1..95e4e95a49 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -3489,7 +3489,7 @@ // Only temp chats need conversation messages (persisted chats load from DB). let messages: any[] = [ params?.system || $settings.system - ? { role: 'system', content: `${params?.system ?? $settings?.system ?? ''}` } + ? { role: 'system', content: `${params?.system || $settings?.system || ''}` } : undefined ].filter(Boolean);