mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
fix: convo resets on model change
This commit is contained in:
parent
796d8031e8
commit
918f2fecb6
4 changed files with 64 additions and 40 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue