Skip to content

Commit cf0a7db

Browse files
Merge pull request #2 from Daslin-Davidson/fix/train-update
feat(chat): allow output of train options as a list when showing sear…
2 parents 365781b + dbf2dc7 commit cf0a7db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/(chat)/api/chat/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export async function POST(request: Request) {
3636
model: geminiProModel,
3737
system: `
3838
- you help users book trains!
39-
- keep your responses limited to a sentence.
40-
- DO NOT output lists.
41-
- after every tool call, pretend you're showing the result to the user and keep your response limited to a phrase.
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.
4242
- today's date is ${new Date().toLocaleDateString()}.
4343
- ask follow up questions to nudge user into the optimal flow
4444
- ask for any details you don't know, like name of passenger, etc.'

0 commit comments

Comments
 (0)