fix: convo resets on model change

This commit is contained in:
Daniel Avila 2023-03-14 21:25:02 -04:00
parent 796d8031e8
commit 918f2fecb6
4 changed files with 64 additions and 40 deletions

View file

@ -64,6 +64,9 @@ export default function ModelMenu() {
}, [model]);
const onChange = (value, custom = false) => {
// Set new conversation
dispatch(setNewConvo());
dispatch(setSubmission({}));
// if (custom) {
// mutate();
// }
@ -89,9 +92,7 @@ export default function ModelMenu() {
dispatch(setCustomModel(null));
}
// Set new conversation
dispatch(setNewConvo());
dispatch(setSubmission({}));
};
const onOpenChange = (open) => {