We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399b557 commit 8bd41b7Copy full SHA for 8bd41b7
components/custom/message.tsx
@@ -43,7 +43,11 @@ export const Message = ({
43
<div className="flex flex-col gap-2 w-full">
44
{content && typeof content === "string" && (
45
<div className="text-zinc-800 dark:text-zinc-300 flex flex-col gap-4">
46
- <Markdown>{content}</Markdown>
+ {/* If train options are present, show a simple summary instead of full details */}
47
+ {content.match(/train options from Rome to Florence:/i)
48
+ ? <Markdown>I found several train options for your route. Please select or book your preferred train from the list above.</Markdown>
49
+ : <Markdown>{content}</Markdown>
50
+ }
51
</div>
52
)}
53
0 commit comments