You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: composeApp/src/commonMain/kotlin/ui/screen/GeminiTab.kt
+16-18Lines changed: 16 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,8 @@ fun GeminiScreenView(navigator: Navigator, viewModel: HomeScreenModel){
115
115
val navigateToGemini by viewModel.navigateToGemini.collectAsState()
116
116
var prompt by remember { mutableStateOf("") }
117
117
val canClearPrompt by remember { derivedStateOf { prompt.isNotBlank() } }
118
-
if (navigateToGemini.second !=null) {
119
-
prompt="""
118
+
if (navigateToGemini.first && navigateToGemini.second !=null) {
119
+
val customPrompt="""
120
120
As a tourist, I want to explore and learn about a destination. Please provide comprehensive information about the following place: ${navigateToGemini.second?.title}.
121
121
Include key details such as:
122
122
- A brief overview of the place
@@ -128,22 +128,20 @@ fun GeminiScreenView(navigator: Navigator, viewModel: HomeScreenModel){
128
128
- Navigation routes or how to reach there from common locations
129
129
Make the information engaging and easy to understand.
0 commit comments