A high-performance inference engine for AI models
fix ios app compilation
eugenec541d8e6e701
diff --git a/apps/playground/Sources/ViewModels/ChatModel.swift b/apps/playground/Sources/ViewModels/ChatModel.swiftindex 49da6eaf3..96d57cd73 100644--- a/apps/playground/Sources/ViewModels/ChatModel.swift+++ b/apps/playground/Sources/ViewModels/ChatModel.swift@@ -118,6 +118,8 @@ final class ChatModel {case .error(let error):stream.cancelToken().cancel()throw error+ case .toolResults:+ break}}diff --git a/apps/playground/Sources/ViewModels/ClassificationModel.swift b/apps/playground/Sources/ViewModels/ClassificationModel.swiftindex f44100d6e..3a65b3bfb 100644--- a/apps/playground/Sources/ViewModels/ClassificationModel.swift+++ b/apps/playground/Sources/ViewModels/ClassificationModel.swift@@ -116,6 +116,8 @@ final class ClassificationModel {case .error(let error):stream.cancelToken().cancel()throw error+ case .toolResults:+ break}}diff --git a/apps/playground/Sources/ViewModels/SummarizationModel.swift b/apps/playground/Sources/ViewModels/SummarizationModel.swiftindex 91901f3ff..1e39824cc 100644--- a/apps/playground/Sources/ViewModels/SummarizationModel.swift+++ b/apps/playground/Sources/ViewModels/SummarizationModel.swift@@ -113,6 +113,8 @@ final class SummarizationModel {case .error(let error):stream.cancelToken().cancel()throw error+ case .toolResults:+ break}}diff --git a/apps/playground/Sources/Views/ModelListView.swift b/apps/playground/Sources/Views/ModelListView.swiftindex 1674d2229..30e425aba 100644--- a/apps/playground/Sources/Views/ModelListView.swift+++ b/apps/playground/Sources/Views/ModelListView.swift@@ -162,7 +162,7 @@ struct ModelListView: View {switch state.phase {case .notDownloaded, .paused:downloadButton- case .downloading, .locked:+ case .downloading, .locked, .initializing:waitingTextcase .error:retryButton@@ -201,7 +201,7 @@ struct ModelListView: View {downloadButtoncase .downloading:pauseButton- case .locked:+ case .locked, .initializing:waitingTextcase .paused:resumeButton@@ -510,7 +510,7 @@ struct ModelListView: View {case .paused: return .pausedcase .notDownloaded: return .notInstalledcase .error: return .notInstalled- case .locked: return .installing+ case .locked, .initializing: return .installing}}diff --git a/apps/playground/Sources/Views/ModelRowView.swift b/apps/playground/Sources/Views/ModelRowView.swiftindex 2672781fb..adf324afc 100644--- a/apps/playground/Sources/Views/ModelRowView.swift+++ b/apps/playground/Sources/Views/ModelRowView.swift@@ -108,6 +108,10 @@ struct ModelRowView: View, Equatable {Text("installing elsewhere…").font(statusFont).foregroundColor(MiraiAsset.secondary.swiftUIColor)+ case .initializing:+ Text("initializing…")+ .font(statusFont)+ .foregroundColor(MiraiAsset.secondary.swiftUIColor)}}