From a0a7f14dd30688ca7a042746b339c17cb2412b8b Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Wed, 12 Apr 2023 12:43:04 +0200 Subject: [PATCH] Add system prompt - disabled for now --- src/lib/Chat.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/Chat.svelte b/src/lib/Chat.svelte index 6e1f370..866b588 100644 --- a/src/lib/Chat.svelte +++ b/src/lib/Chat.svelte @@ -228,6 +228,14 @@ const submitForm = async (recorded: boolean = false): Promise => { + // Compose the system prompt message if there are no messages yet - disabled for now + /* + if (chat.messages.length === 0) { + const systemPrompt: Message = { role: 'system', content: 'You are a helpful assistant.' } + addMessage(chatId, systemPrompt) + } + */ + // Compose the input message const inputMessage: Message = { role: 'user', content: input.value } addMessage(chatId, inputMessage)