Skip to content

Commit

Permalink
chat: add default system prompt to new chats
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham0204 committed Dec 2, 2024
1 parent c946b5c commit cbd7d8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fun DrawerUI(
val chatCount = viewModel.chatsDB.getChatsCount()
val newChatId =
viewModel.chatsDB.addChat(chatName = "Untitled ${chatCount + 1}")
onItemClick(Chat(id = newChatId, name = "Untitled ${chatCount + 1}"))
onItemClick(Chat(id = newChatId, name = "Untitled ${chatCount + 1}", systemPrompt = "You are a helpful assistant."))
},
) {
Icon(Icons.Default.Add, contentDescription = "New Chat")
Expand Down

0 comments on commit cbd7d8e

Please sign in to comment.