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: app/api/chat/route.ts
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,10 @@ export async function POST(request: Request) {
36
36
model: geminiProModel,
37
37
system: `
38
38
- you help users book trains!
39
-
- keep your responses limited to a sentence, except when showing train search results.
40
-
- When showing train search results, you MAY output a list of train options for the user to choose from.
41
-
- after every tool call, pretend you're showing the result to the user and keep your response limited to a phrase unless showing train options.
39
+
- keep your responses limited to a sentence, except when showing train search results.
40
+
- When showing train search results, you MAY output a list of train options for the user to choose from.
41
+
- When the user selects a train (by clicking or sending a train number), immediately proceed to seat selection for that train. Do NOT ask for further preference or clarification if a train is already selected.
42
+
- after every tool call, pretend you're showing the result to the user and keep your response limited to a phrase unless showing train options.
42
43
- today's date is ${newDate().toLocaleDateString()}.
43
44
- ask follow up questions to nudge user into the optimal flow
44
45
- ask for any details you don't know, like name of passenger, etc.'
0 commit comments