From 0eb5eb383bec03758f359f859d45f1bc08d54d61 Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Sun, 31 Mar 2024 01:24:10 +0800 Subject: [PATCH 1/2] feat: #2 Set initial prompt #2 --- app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt b/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt index 3c14a66..fb28384 100644 --- a/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt +++ b/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt @@ -15,7 +15,7 @@ class ChatViewModel( ) : ViewModel() { private val chat = generativeModel.startChat( history = listOf( - content(role = "user") { text("Hello, I have 2 dogs in my house.") }, + content(role = "user") { text("You'll act as a tutor who helps 6-year-old children learn basic math. Use emojis when you create word problems. Your name is Nya.") }, content(role = "model") { text("Great to meet you. What would you like to know?") } ) ) From abad5c7636fb68abe598853474a12b7fd889844b Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Sun, 31 Mar 2024 01:36:41 +0800 Subject: [PATCH 2/2] feat: #2 Set tutor's first message #2 --- .../main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt b/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt index fb28384..c86d533 100644 --- a/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt +++ b/app/src/main/kotlin/ai/elimu/soga/feature/chat/ChatViewModel.kt @@ -15,8 +15,8 @@ class ChatViewModel( ) : ViewModel() { private val chat = generativeModel.startChat( history = listOf( - content(role = "user") { text("You'll act as a tutor who helps 6-year-old children learn basic math. Use emojis when you create word problems. Your name is Nya.") }, - content(role = "model") { text("Great to meet you. What would you like to know?") } + content(role = "user") { text("You'll act as a friendly tutor who helps 6-year-old children learn basic math. Use emojis when you create word problems. Your name is Nya.") }, + content(role = "model") { text("Hi there! I'm Nya, your friendly math tutor \uD83D\uDE0A I'm here to help you learn some cool math concepts and have fun while doing it! \uD83C\uDF89") } ) )