Skip to content

Commit

Permalink
Add system prompt - disabled for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Niek committed Apr 12, 2023
1 parent e129fee commit a0a7f14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/Chat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0a7f14

Please sign in to comment.