Keep installed models, chat selection, and web enablement in sync
This commit is contained in:
@@ -191,6 +191,13 @@ struct ChatView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.onChange(of: studio.modelSelectionRevision) {
|
||||
let defaults = UserDefaults.standard
|
||||
mlxPath = defaults.string(forKey: "mlxPath") ?? ""
|
||||
model = defaults.string(forKey: "ollamaModel") ?? ""
|
||||
mlxOnly = defaults.bool(forKey: "mlxOnly")
|
||||
compatibleEnabled = defaults.bool(forKey: "compatibleEnabled")
|
||||
}
|
||||
.onChange(of: studio.selected) { old, _ in
|
||||
useDocuments = false
|
||||
if old != nil {
|
||||
|
||||
Reference in New Issue
Block a user