setInputMsg("") after click assistant or user

This commit is contained in:
2023-07-13 18:03:21 +08:00
parent 488e441635
commit f8ce1d3915

View File

@@ -487,6 +487,7 @@ export default function ChatBOX(props: {
example: false, example: false,
}); });
update_total_tokens(); update_total_tokens();
setInputMsg("");
setChatStore({ ...chatStore }); setChatStore({ ...chatStore });
}} }}
> >
@@ -506,6 +507,7 @@ export default function ChatBOX(props: {
example: false, example: false,
}); });
update_total_tokens(); update_total_tokens();
setInputMsg("");
setChatStore({ ...chatStore }); setChatStore({ ...chatStore });
}} }}
> >