Route to /chat/:id when clicking suggestions (#491)
This commit is contained in:
parent
fe3d58fc65
commit
5d6d0ed664
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue