Skip to content

armgit / uzu

Public Imported from GitHub
0

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.swift
index 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.swift
index 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.swift
index 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.swift
index 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:
waitingText
case .error:
retryButton
@@ -201,7 +201,7 @@ struct ModelListView: View {
downloadButton
case .downloading:
pauseButton
- case .locked:
+ case .locked, .initializing:
waitingText
case .paused:
resumeButton
@@ -510,7 +510,7 @@ struct ModelListView: View {
case .paused: return .paused
case .notDownloaded: return .notInstalled
case .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.swift
index 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)
}
}