New chat on different model selected
This commit is contained in:
parent
ebba5b82e6
commit
9fb9904bdb
|
@ -60,11 +60,11 @@ void setModel(BuildContext context, Function setState) {
|
|||
}
|
||||
}
|
||||
|
||||
load();
|
||||
|
||||
if (useModel) return;
|
||||
selectionHaptic();
|
||||
|
||||
load();
|
||||
|
||||
var content = StatefulBuilder(builder: (context, setLocalState) {
|
||||
setModalState = setLocalState;
|
||||
return PopScope(
|
||||
|
@ -75,6 +75,7 @@ void setModel(BuildContext context, Function setState) {
|
|||
modelsReal[usedIndex] != model &&
|
||||
(prefs!.getBool("resetOnModelSelect") ?? true)) {
|
||||
messages = [];
|
||||
chatUuid = null;
|
||||
}
|
||||
model = (usedIndex >= 0) ? modelsReal[usedIndex] : null;
|
||||
chatAllowed = !(model == null);
|
||||
|
|
Loading…
Reference in New Issue