Add system prompt - disabled for now

This commit is contained in:
Niek van der Maas 2023-04-12 12:43:04 +02:00
parent e129feec0e
commit a0a7f14dd3
1 changed files with 8 additions and 0 deletions

View File

@ -228,6 +228,14 @@
const submitForm = async (recorded: boolean = false): Promise<void> => {
// 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)