This commit is contained in:
Yidadaa 2023-04-06 04:01:53 +08:00
parent d23c0b100b
commit ba19f837de

View File

@ -445,8 +445,10 @@ export function Chat(props: {
chatStore
.onUserInput(messages[i].content)
.then(() => setIsLoading(false));
chatStore.updateCurrentSession((session) =>
session.messages.splice(i, 2),
);
inputRef.current?.focus();
messages.splice(i, 2);
return;
}
}