Route to /chat/:id when clicking suggestions (#491)

This commit is contained in:
Jeremy 2024-11-05 23:23:09 +03:00 committed by GitHub
parent fe3d58fc65
commit 5d6d0ed664
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,6 +209,8 @@ export function MultimodalInput({
<Button <Button
variant="ghost" variant="ghost"
onClick={async () => { onClick={async () => {
window.history.replaceState({}, '', `/chat/${chatId}`);
append({ append({
role: 'user', role: 'user',
content: suggestedAction.action, content: suggestedAction.action,