new features

This commit is contained in:
Mark Gregory
2026-11-19 09:18:49 +00:00
parent a07ddf4d6d
commit 0720c8a18b
13 changed files with 918 additions and 211 deletions
+11
View File
@@ -1038,6 +1038,17 @@ final class StudioModel: ObservableObject {
discoveredMLXPaths.removeAll { $0 == path }
}
func selectCompatibleModel(_ model: String, endpoint: String) {
let defaults = UserDefaults.standard
defaults.removeObject(forKey: "defaultGGUFPath")
defaults.removeObject(forKey: "defaultCoreMLPath")
defaults.set(false, forKey: "mlxOnly")
defaults.set(endpoint, forKey: "compatibleEndpoint")
defaults.set(model, forKey: "compatibleModel")
defaults.set(true, forKey: "compatibleEnabled")
modelSelectionRevision += 1
}
func selectCoreMLModel(_ path: String) {
UserDefaults.standard.removeObject(forKey: "defaultGGUFPath")
UserDefaults.standard.set(path, forKey: "defaultCoreMLPath")