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
fix: update timestamp logic to avoid hydration errors
Refactors the timestamp handling in BotMessage, UserMessage, and Chat components to ensure consistent formatting. The timestamp is now passed as a string and parsed into a Date object where necessary. This change improves the reliability of timestamp rendering across the application.
// This is a mock implementation - in real usage this would call your actual MCP endpoint
26
26
constresponses=[
27
27
"I'm analyzing your request and will have an answer shortly.",
28
-
"Based on the information available, I would recommend exploring these options further.",
28
+
'Based on the information available, I would recommend exploring these options further.',
29
29
"That's an interesting question. Let me provide some context that might help.",
30
30
"I've processed your request and here's what I found in our knowledge base.",
31
-
"According to our latest data, the answer to your question would be...",
32
-
`Great question! As your AI assistant, I can tell you that ${prompt.toLowerCase().includes("weather") ? "the weather forecast shows mild temperatures with a chance of rain." : "there are multiple approaches to consider here."}`,
33
-
];
31
+
'According to our latest data, the answer to your question would be...',
32
+
`Great question! As your AI assistant, I can tell you that ${prompt.toLowerCase().includes('weather') ? 'the weather forecast shows mild temperatures with a chance of rain.' : 'there are multiple approaches to consider here.'}`,
33
+
]
34
34
35
35
// Select a response based on input to simulate some contextual awareness
0 commit comments