Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

Move Edit Mode into AI Settings

altic-dev9742b292bb57
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index dcf45e5b..bf86f6d1 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -37,7 +37,7 @@ nonisolated enum AIProcessingError: LocalizedError {
}
}
- /// Configuration errors the user can fix in AI Providers.
+ /// Configuration errors the user can fix in AI Settings.
var isConfigurationError: Bool {
switch self {
case .noVerifiedProvider, .missingAPIKey, .missingModel:
@@ -55,7 +55,7 @@ nonisolated enum DictationAIFailurePresentationPolicy {
static func notificationMessage(for error: Error) -> String {
if let aiError = error as? AIProcessingError, aiError.isConfigurationError {
- return "\(aiError.localizedDescription). Open AI Providers to configure a provider."
+ return "\(aiError.localizedDescription). Open AI Settings to configure a provider."
}
return error.localizedDescription
}
@@ -1211,6 +1211,8 @@ struct ContentView: View {
self.navigateToApp(.meetingTranscription)
case .preferences:
self.openSettings(.general)
+ case .aiSettings:
+ self.navigateToApp(.aiEnhancements)
case .cleanupStyles:
self.navigateToApp(.cleanupStyles)
}
@@ -1537,7 +1539,7 @@ struct ContentView: View {
Section {
self.sidebarNavigationLink(.voiceEngine, title: "Voice Engine", systemImage: "waveform")
- self.sidebarNavigationLink(.aiEnhancements, title: "AI Providers", systemImage: "cpu")
+ self.sidebarNavigationLink(.aiEnhancements, title: "AI Settings", systemImage: "cpu")
self.sidebarNavigationLink(.cleanupStyles, title: "Cleanup Styles", systemImage: "wand.and.stars")
self.sidebarNavigationLink(.customDictionary, title: "Custom Dictionary", systemImage: "text.book.closed.fill")
} header: {
@@ -3907,7 +3909,7 @@ struct ContentView: View {
canRetry: false,
downloadAction: needsModel ? {
EditModeModelController.shared.download()
- self.menuBarManager.openCleanupStyles()
+ self.menuBarManager.openAISettings()
} : nil
)
self.menuBarManager.finishProcessingKeepingOverlayVisible()
diff --git a/Sources/Fluid/Persistence/SettingsStore+CommandMode.swift b/Sources/Fluid/Persistence/SettingsStore+CommandMode.swift
index f0352025..3a24db5d 100644
--- a/Sources/Fluid/Persistence/SettingsStore+CommandMode.swift
+++ b/Sources/Fluid/Persistence/SettingsStore+CommandMode.swift
@@ -71,9 +71,9 @@ extension SettingsStore {
guard self.isCommandModeProviderVerified(providerID) else {
if self.commandModeLinkedToGlobal {
- return "Command Mode needs a verified chat provider. Choose a verified model, or verify a provider in AI Providers."
+ return "Command Mode needs a verified chat provider. Choose a verified model, or verify a provider in AI Settings."
}
- return "Command Mode needs a verified chat provider. Verify this provider in AI Providers before using Command Mode."
+ return "Command Mode needs a verified chat provider. Verify this provider in AI Settings before using Command Mode."
}
return nil
diff --git a/Sources/Fluid/Services/EditModeRoute.swift b/Sources/Fluid/Services/EditModeRoute.swift
index ed195abb..f557074c 100644
--- a/Sources/Fluid/Services/EditModeRoute.swift
+++ b/Sources/Fluid/Services/EditModeRoute.swift
@@ -3,7 +3,7 @@ import Foundation
/// Where an Edit Mode request runs. The shortcut and the request ask the same
/// question, so they can't disagree about whether the model is there.
enum EditModeRoute: Equatable {
- /// A cloud or custom provider, picked in AI Providers.
+ /// A cloud or custom provider, picked in AI Settings.
case provider
case local(PrivateAIRegisteredModel)
/// Fluid Intelligence is selected, but its Edit Mode model isn't downloaded.
diff --git a/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift b/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift
index 9f315da0..94fa5239 100644
--- a/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift
+++ b/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift
@@ -79,7 +79,7 @@ final class MeetingSummaryPreferences: ObservableObject {
}
}
-/// A verified provider from AI Providers, resolved the same way Command Mode resolves its route.
+/// A verified provider from AI Settings, resolved the same way Command Mode resolves its route.
nonisolated struct MeetingSummaryRoute {
let providerID: String
let providerName: String
@@ -104,7 +104,7 @@ nonisolated struct MeetingSummaryRoute {
let repository = ModelRepository.shared
let key = repository.providerKey(for: providerID)
guard !providerID.isEmpty else {
- throw LLMError.invalidRequest("Choose a provider to summarize with, or add one in AI Providers.")
+ throw LLMError.invalidRequest("Choose a provider to summarize with, or add one in AI Settings.")
}
let model = selection.modelsByProvider[key] ?? ""
guard !model.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
@@ -114,7 +114,7 @@ nonisolated struct MeetingSummaryRoute {
guard settings.commandModeModelCatalog().contains(where: {
repository.providerKey(for: $0.providerID) == key && $0.modelID == model
}) else {
- throw LLMError.invalidRequest("This model is unavailable or its provider needs verification. Update it in AI Providers.")
+ throw LLMError.invalidRequest("This model is unavailable or its provider needs verification. Update it in AI Settings.")
}
let saved = settings.savedProviders.first { repository.providerKey(for: $0.id) == key }
let baseURL = (saved?.baseURL ?? repository.defaultBaseURL(for: providerID)).trimmingCharacters(in: .whitespacesAndNewlines)
diff --git a/Sources/Fluid/Services/MenuBarManager.swift b/Sources/Fluid/Services/MenuBarManager.swift
index 5fe4fecb..33b4657d 100644
--- a/Sources/Fluid/Services/MenuBarManager.swift
+++ b/Sources/Fluid/Services/MenuBarManager.swift
@@ -9,6 +9,7 @@ enum MenuBarNavigationDestination: String {
case meetingTranscription
case preferences
case cleanupStyles
+ case aiSettings
}
@MainActor
@@ -1519,6 +1520,10 @@ final class MenuBarManager: NSObject, ObservableObject, NSMenuDelegate {
self.stopMeetingRecordingHandler?()
}
+ func openAISettings() {
+ self.openNavigationDestination(.aiSettings)
+ }
+
func openCleanupStyles() {
self.openNavigationDestination(.cleanupStyles)
}
diff --git a/Sources/Fluid/UI/AISettings/EditModeModelSection.swift b/Sources/Fluid/UI/AISettings/EditModeModelSection.swift
index acaa1688..2c485f52 100644
--- a/Sources/Fluid/UI/AISettings/EditModeModelSection.swift
+++ b/Sources/Fluid/UI/AISettings/EditModeModelSection.swift
@@ -45,9 +45,9 @@ struct EditModeLocalModelRow: View {
.foregroundStyle(self.theme.palette.warning)
.fixedSize(horizontal: false, vertical: true)
} else if self.controller.installed {
- Label("Ready · runs on this Mac", systemImage: "checkmark.circle.fill")
+ Text("Downloaded · On this Mac")
.font(self.theme.typography.caption)
- .foregroundStyle(self.theme.palette.success)
+ .foregroundStyle(self.theme.palette.secondaryText)
} else {
Text("A one-time download. It stays on this Mac.")
.font(self.theme.typography.caption)
diff --git a/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift b/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift
index a7e4b39b..36670dbb 100644
--- a/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift
+++ b/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift
@@ -46,23 +46,28 @@ extension AIEnhancementSettingsView {
// MARK: - AI Configuration Card
- @ViewBuilder var aiConfigurationCard: some View {
- if self.selectedConfigurationSection == .providers, PrivateAIProviderFeature.shared.isAvailable {
- VStack(alignment: .leading, spacing: self.theme.metrics.spacing.xl) {
- FluidIntelligenceLiveSection(
- controller: self.privateAIController,
- backendID: self.settings.privateAIBackendPreference.rawValue,
- isPrimary: self.primaryDefaultProviderID == PrivateAIProviderFeature.shared.providerID,
- isVerified: self.isPrivateAIModelVerified(self.privateAIController.selectedPrivateAIModel),
- makePrimary: { self.makePrimaryDefaultProvider(PrivateAIProviderFeature.shared.providerID, isPrivateAI: true) }
- ) {
- self.privateAIManagementSettings(isBusy: self.privateAIController.isBusy)
- }
- self.addedExternalProvidersSection
- }
- .frame(maxWidth: .infinity, alignment: .leading)
- } else {
- self.legacyAIConfigurationCard
+ var aiConfigurationCard: some View {
+ VStack(alignment: .leading, spacing: AISettingsLayout.stylesSectionSpacing) {
+ if self.selectedConfigurationSection == .providers, PrivateAIProviderFeature.shared.isAvailable {
+ VStack(alignment: .leading, spacing: self.theme.metrics.spacing.xl) {
+ FluidIntelligenceLiveSection(
+ controller: self.privateAIController,
+ backendID: self.settings.privateAIBackendPreference.rawValue,
+ isPrimary: self.primaryDefaultProviderID == PrivateAIProviderFeature.shared.providerID,
+ isVerified: self.isPrivateAIModelVerified(self.privateAIController.selectedPrivateAIModel),
+ makePrimary: { self.makePrimaryDefaultProvider(PrivateAIProviderFeature.shared.providerID, isPrivateAI: true) }
+ ) {
+ self.privateAIManagementSettings(isBusy: self.privateAIController.isBusy)
+ }
+ self.addedExternalProvidersSection
+ }
+ .frame(maxWidth: .infinity, alignment: .leading)
+ } else {
+ self.legacyAIConfigurationCard
+ }
+ if self.selectedConfigurationSection == .providers {
+ self.editModeSection
+ }
}
}
@@ -1852,10 +1857,7 @@ extension AIEnhancementSettingsView {
}
var promptsStepContent: some View {
- VStack(alignment: .leading, spacing: AISettingsLayout.stylesSectionSpacing) {
- self.advancedSettingsCard
- self.editModeSection
- }
+ self.advancedSettingsCard
}
var builtInProvidersList: [(id: String, name: String)] {
diff --git a/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift b/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift
index 88922f36..9c5cbb17 100644
--- a/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift
+++ b/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift
@@ -829,7 +829,7 @@ extension AIEnhancementSettingsView {
.sheet(isPresented: self.$showingPromptProviderSetup) {
VStack(alignment: .leading, spacing: 16) {
HStack {
- Text("AI Providers").font(self.theme.typography.title)
+ Text("AI Settings").font(self.theme.typography.title)
Spacer()
Button("Done") { self.showingPromptProviderSetup = false }
.fluidGlassAction()
@@ -1352,8 +1352,8 @@ extension AIEnhancementSettingsView {
let providerID = self.activeEditModeProviderID
let providers = self.editModeVerifiedProviders
return self.stylesSection(
- title: "Edit Mode",
- subtitle: "Press the shortcut and say what you want. Select text first to change it. It runs on its own model, separate from dictation."
+ title: "Edit Mode (Beta)",
+ subtitle: "Select text and say what to change. Edit Mode uses its own model, separate from dictation."
) {
ThemedCard(style: .subtle, padding: 16) {
VStack(alignment: .leading, spacing: 14) {
@@ -1407,7 +1407,7 @@ extension AIEnhancementSettingsView {
let models = self.editModeModels(for: providerID)
if providerID.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
FluidManagementRow(title: "Model", detail: "Add an AI provider to use Edit Mode.") {
- Button("AI Providers") { AppNavigationRouter.shared.request(.aiEnhancements) }
+ Button("AI Settings") { AppNavigationRouter.shared.request(.aiEnhancements) }
.fluidGlassAction()
}
} else {
diff --git a/Sources/Fluid/UI/AppNavigationState.swift b/Sources/Fluid/UI/AppNavigationState.swift
index a1c6220c..53e77f55 100644
--- a/Sources/Fluid/UI/AppNavigationState.swift
+++ b/Sources/Fluid/UI/AppNavigationState.swift
@@ -26,7 +26,7 @@ enum SidebarItem: Hashable {
switch self {
case .welcome: "Dashboard"
case .voiceEngine: "Voice Engine"
- case .aiEnhancements: "AI Providers"
+ case .aiEnhancements: "AI Settings"
case .cleanupStyles: "Cleanup Styles"
case .fileTranscription: "File Transcription"
case .meetingTranscription: "FluidMeet"
diff --git a/Sources/Fluid/UI/MeetingSummaryView.swift b/Sources/Fluid/UI/MeetingSummaryView.swift
index 3a9bc697..c6337fe7 100644
--- a/Sources/Fluid/UI/MeetingSummaryView.swift
+++ b/Sources/Fluid/UI/MeetingSummaryView.swift
@@ -156,7 +156,7 @@ struct MeetingSummaryView: View {
private var setupPrompt: some View {
VStack(alignment: .leading, spacing: self.theme.metrics.spacing.sm) {
- Text("Summaries use a provider from AI Providers. Add and verify one to summarize this meeting.")
+ Text("Summaries use a provider from AI Settings. Add and verify one to summarize this meeting.")
.font(self.theme.typography.bodySmall)
.foregroundStyle(self.theme.palette.secondaryText)
.fixedSize(horizontal: false, vertical: true)
diff --git a/Sources/Fluid/UI/ReleaseFeaturePreview.swift b/Sources/Fluid/UI/ReleaseFeaturePreview.swift
index 484033b3..a1fd4c40 100644
--- a/Sources/Fluid/UI/ReleaseFeaturePreview.swift
+++ b/Sources/Fluid/UI/ReleaseFeaturePreview.swift
@@ -89,7 +89,7 @@ struct ReleaseFeaturePreview: View {
private var models: some View {
VStack(alignment: .leading, spacing: 10) {
- Label(PrivateAIProviderFeature.shared.isAvailable ? "Fluid Intelligence" : "AI Providers", systemImage: "sparkles")
+ Label(PrivateAIProviderFeature.shared.isAvailable ? "Fluid Intelligence" : "AI Settings", systemImage: "sparkles")
.font(.system(size: 11, weight: .semibold))
if PrivateAIProviderFeature.shared.isAvailable {
self.model("Fluid 1.1 Splash", detail: "Reads your screen", symbol: "text.viewfinder")
diff --git a/Sources/Fluid/Views/CommandModelPicker.swift b/Sources/Fluid/Views/CommandModelPicker.swift
index 42ee7cfe..d6155ebd 100644
--- a/Sources/Fluid/Views/CommandModelPicker.swift
+++ b/Sources/Fluid/Views/CommandModelPicker.swift
@@ -49,7 +49,7 @@ struct CommandModelPicker: View {
if self.options.isEmpty {
self.emptyState(
title: "No models available",
- message: "Verify a chat provider in AI Providers to make its models available here."
+ message: "Verify a chat provider in AI Settings to make its models available here."
)
} else if filtered.isEmpty {
self.emptyState(
diff --git a/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift b/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift
index b0cbbed0..a768cf8a 100644
--- a/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift
+++ b/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift
@@ -3221,7 +3221,7 @@ final class OverlayFailureStateTests: XCTestCase {
for: AIProcessingError.missingAPIKey(provider: "OpenAI")
)
- XCTAssertEqual(message, "API key not set for OpenAI. Open AI Providers to configure a provider.")
+ XCTAssertEqual(message, "API key not set for OpenAI. Open AI Settings to configure a provider.")
}
func testCustomNonRetryableMessage() {