Introducing a new way to review your PRs.

Read the announcement

altic-dev / fluidvoice

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

View on GitHub

24 documents · Updated Nov 23, 2026

docs / ai-provider-and-model-management

AI provider and model management

AI provider and model management gives Fluid one way to select, check, and use language and speech models for enhancement work. It supports remote API providers, local OpenAI-compatible servers, an optional private local provider, and downloadable speech providers while keeping model choice and provider readiness tied to each enhancement route. See AI assistance for the wider feature flow, command and rewrite modes for related enhancement routes, and speech recognition engines for the wider transcription flow.

Provider model boundary

The provider boundary separates the information needed to call a model from the work that performs enhancement. A provider supplies an identity, a base URL, an optional key, and one or more model IDs. The enhancement services then resolve those values into a request or into the private local runtime.

Provider identities

Fluid has built-in entries for OpenAI, Anthropic, xAI, Groq, Cerebras, Google, OpenRouter, Ollama, and LM Studio. When the private provider is available, it is added as another built-in entry. Users can also save a custom provider with its own name, URL, and model list. The built-in entries supply known names and default URLs. Local entries do not need an API key, while remote entries normally do.

Provider IDs are also storage keys. Built-in IDs are used as-is. Custom IDs use a custom: form so that a saved provider does not share model or verification state with a built-in provider that has a similar name. Lookups accept the prefixed and unprefixed form for custom providers so older saved settings can still resolve.

References: Sources/…/ModelRepository.swift• L17-73 Sources/…/ModelRepository.swift• L75-123 Sources/…/ModelRepository.swift• L153-230

Private provider contracts

The private provider is an optional local runtime that is exposed through two contracts. The feature contract describes whether the provider exists, which models it supports, which models apply to each task, and where a model belongs. It can also give task and hardware guidance and customer-facing model descriptions without changing the model IDs or artifacts used by the runtime.

The integration contract prepares and loads a model, reports runtime state, manages model updates, and performs dictation, meeting summary, or rewrite work. These contracts let the main app use the private provider when its supporting build is present. The provider registry supplies either the active integration or an unavailable shim. An unavailable-provider path fails closed for setup and model operations. It does not turn a missing private runtime into a remote request. Its dictation fallback returns the input unchanged, while unsupported summary and rewrite calls fail as unavailable.

The feature contract also defines the provider's stable identity, prompt selection ID, settings keys, model directory, and model-ID rules. Private models can be scoped to tasks such as meeting summary, dictation, edit, or command. Recommendation and presentation data guide the settings experience, while canonical model identity and artifact data remain authoritative for installation and runtime use. The integration contract also covers runtime residency, prewarming, shutdown, and restoration so model state remains tied to the active local runtime.

References: Sources/…/PrivateAIProvider.swift• L144-207 Sources/…/PrivateAIProvider.swift• L238-299 Sources/…/PrivateAIProvider.swift• L388-438 Sources/…/PrivateAIProvider.swift• L447-481 Sources/…/PrivateAIModelPresentation.swift• L24-57

Speech provider contracts

Speech providers use the same readiness boundary for local transcription models. Each provider reports whether it is available, prepares the model or locale, exposes model presence for setup, and rejects transcription until preparation completes. The provider choice can support streaming previews, final transcription, or native file processing depending on the engine.

The Apple Speech provider manages a system speech model for the selected locale. FluidAudio manages Parakeet model variants and can pin a model for an isolated meeting run. Nemotron manages a multilingual or low-latency model bundle and selects the target language before transcription. These providers keep model setup and runtime state separate from the meeting or dictation settings that select them.

References: Sources/…/AppleSpeechAnalyzerProvider.swift• L9-24 Sources/…/AppleSpeechAnalyzerProvider.swift• L39-124 Sources/…/FluidAudioProvider.swift• L116-189 Sources/…/FluidAudioProvider.swift• L460-504 Sources/…/NemotronProvider.swift• L8-37 Sources/…/NemotronProvider.swift• L77-189

LLM request client

Sources/…/LLMClient.swift is the shared request client for remote language-model calls. Dictation enhancement, command mode, and rewrite mode give it messages plus provider and model settings. The client turns that shared input into the provider request and returns common text, thinking, and tool-call results.

Request protocols

The client supports two related request shapes. It uses Chat Completions for most OpenAI-compatible providers and uses the Responses shape for an explicit /responses URL or for selected current OpenAI reasoning models. It adds the needed endpoint path when the saved base URL is only the provider root.

The request can stream or wait for a complete result. It can also carry tools, temperature, an output limit, and model-specific extra parameters. Reasoning settings from the selected model are layered into the request without changing the provider route.

Every request states the stream value. This matters for local servers such as Ollama because an omitted value can make a non-streaming call behave as a stream. Remote calls send a bearer key when one is configured.

References: Sources/…/LLMClient.swift• L118-171 Sources/…/LLMClient.swift• L173-226 Sources/…/LLMClient.swift• L228-359 Sources/…/LLMClient.swift• L361-401

Response contract

The client hides provider response differences from enhancement features. A result contains visible content, optional thinking text, and parsed tool calls. Streaming callbacks expose thinking and content as they arrive, while the final result keeps the same shape for streamed and non-streamed calls.

The client removes thinking markup such as <think> blocks before it returns visible content. It also reads separate reasoning fields used by some models. Temporary network failures can be retried with backoff, while invalid URLs, HTTP errors, bad JSON, and empty or unsupported responses remain explicit failures.

References: Sources/…/LLMClient.swift• L83-109 Sources/…/LLMClient.swift• L194-226 Sources/…/LLMClient.swift• L468-496 Sources/…/LLMClient.swift• L602-795 Sources/…/LLMClient.swift• L847-951

Private provider prompts and integration

The private provider is not just another remote endpoint. Fluid treats it as a local enhancement path with its own model readiness check, prompt selection identity, runtime settings, and result contract.

Dictation prompt format

Remote dictation enhancement builds a user message from the effective dictation prompt and the raw transcript. A prompt may contain ${transcript} to choose the insertion point. If it does not contain that marker, Fluid appends the transcript after the prompt. The built-in prompt remains the default unless a valid custom prompt changes the resolved prompt body.

The private provider uses a special prompt selection ID rather than a normal remote provider prompt. The selection is available only when the private feature is present, the chosen model is installed, and that model has a matching verification record. The check uses the model's canonical ID and accepts a matching model-scoped or provider-scoped fingerprint. This prevents a stale model choice from silently enabling private enhancement.

References: Sources/…/SettingsStore.swift• L1044-1063 Sources/…/SettingsStore.swift• L1114-1175 Sources/…/SettingsStore.swift• L1204-1253 Sources/…/PrivateAIProviderPromptFormat.swift• L3-56 Sources/…/PrivateAIProvider.swift• L185-207

Runtime integration

When a private model is selected, the enhancement service sends text and app context to PrivateAIIntegrationService instead of sending an HTTP request through LLMClient. The runtime configuration carries provider and model identity, the local model path, context capacity, and local runtime options such as prompt-cache and boost settings. The integration returns enhanced text with optional backend and latency data.

The same boundary serves dictation, meeting summary, and rewrite work. Before private dictation reaches the provider, the integration checks that the input has enough room in the model context. If it does not, the call fails before generation so the caller can keep the complete raw transcript instead of allowing provider-side truncation. A private model must be installed and verified before an enhancement route can use it. Runtime residency evidence prevents a late result from an old runtime from marking a replacement model as loaded.

The high-level selection path connects prompt settings to either the remote client or the local runtime as shown here:

flowchart TD
    A[Enhancement request] --> B[Resolve prompt and provider]
    B --> C{Private model selected?}
    C -->|No| D[Check provider URL, model, key, and verification]
    D --> E[Build request with LLMClient]
    E --> F[Return cleaned model content]
    C -->|Yes| G[Check installed model and verification]
    G --> H[Build private runtime configuration]
    H --> I[Check dictation context headroom]
    I --> J[Run local provider integration]
    J --> K[Return local enhancement result]

References: Sources/…/DictationPostProcessingService.swift• L3-14 Sources/…/DictationPostProcessingService.swift• L147-250 Sources/…/RewriteModeService.swift• L194-322 Sources/…/PrivateAIIntegrationService.swift• L14-24 Sources/…/PrivateAIIntegrationService.swift• L181-207 Sources/…/PrivateAIIntegrationService.swift• L231-288 Sources/…/PrivateAIIntegrationService.swift• L300-361 Sources/…/PrivateAIProvider.swift• L238-299 Sources/…/PrivateAIProvider.swift• L583-602 Tests/…/PrivateAIDictationTokenBudgetTests.swift• L6-75

Downloadable model lifecycle

Downloadable local models turn a registered model choice into a local runtime asset. Private language models and speech providers both use preparation states, completeness checks, and readiness gates so a file on disk does not become trusted until the runtime can use it.

Model artifacts

Each private model has an identifier, display data, a file name, and optional download metadata. Download metadata can include a URL, SHA-256 value, byte count, and version. A model is downloadable only when the required URL and hash are present.

Customer-facing presentation metadata can add a short summary, a use case, language information, and optional labels or comparison values. This metadata helps users choose a model, but it does not define the artifact, download eligibility, or runtime identity.

The settings flow shows model state as unavailable, downloading, verifying, loading, ready, or failed. Progress reports bytes when the server gives a useful total. Completion means the file transfer ended; verification still has to succeed before the model is treated as ready. A version can also report whether the installed artifact is current or needs an update.

The provider contract treats a download as complete only when the expected byte count is known and has been written. If the server does not provide that count, the registered artifact can supply it as a fallback. The UI then changes from downloading to verifying before the file is accepted as a usable model.

References: Sources/…/PrivateAIProvider.swift• L5-63 Sources/…/PrivateAIProvider.swift• L66-123 Sources/…/PrivateAIProvider.swift• L127-157 Sources/…/PrivateAIProvider.swift• L159-176 Sources/…/PrivateAIModelPresentation.swift• L24-57 Sources/…/AIConfiguration.swift• L639-749

Speech model catalog

ParakeetSpeechModelCatalog is the shared catalog for downloadable Parakeet speech models. It gives each model a stable identity, language set, required model assets, download information, and user-facing performance data. The catalog includes English-only, multilingual, compact, and high-accuracy choices so model selection can match the user's language and device needs.

The catalog also defines which installed files count as complete and which archive revision is current. Compact hosted packs carry a revision marker and a manifest identity. This lets the speech runtime distinguish a valid installed model from an older or partial cache while preserving pronunciation profiles across compatible Parakeet models.

References: Sources/…/ParakeetSpeechModelCatalog.swift• L6-16 Sources/…/ParakeetSpeechModelCatalog.swift• L18-83 Sources/…/ParakeetSpeechModelCatalog.swift• L85-170 Sources/…/ParakeetSpeechModelCatalog.swift• L180-281 Sources/…/ParakeetSpeechModelCatalog.swift• L302-359

Repository model downloads

Repository-based model downloads resolve a defined set of files from a model repository and preserve the bundle needed by the local runtime. The downloader reports byte progress and treats a model as complete only when the required files contain usable data.

The download path checks the response size when it is available and rejects markup returned in place of model data. It also removes known bad cached payloads before retrying, while leaving unreadable files in place when the cache cannot be checked with confidence. Cancellation removes temporary data so an interrupted transfer does not become a trusted model.

References: Sources/…/ModelDownloader.swift• L98-227 Sources/…/ModelDownloader.swift• L233-325 Sources/…/ModelDownloader.swift• L327-399 Sources/…/ModelDownloader.swift• L407-518 Sources/…/ModelDownloader.swift• L621-790

Speech model preparation

Speech model preparation keeps the selected transcription engine separate from its runtime. Apple Speech checks locale support and asks the system to install the locale model. FluidAudio resolves a supported Parakeet descriptor from the shared catalog and prepares its local model, while Nemotron checks its full artifact set before loading the model bundle.

Preparation also protects the active model from bad downloads. FluidAudio can validate staged compact weights with a fixed speech check before publication. Nemotron rejects incomplete or markup-filled cached artifacts and can retry model loading with a safer compute path when the preferred path cannot load the model. A provider reports ready only after its model or locale is usable.

References: Sources/…/AppleSpeechAnalyzerProvider.swift• L45-124 Sources/…/AppleSpeechAnalyzerProvider.swift• L127-172 Sources/…/FluidAudioProvider.swift• L81-113 Sources/…/FluidAudioProvider.swift• L460-504 Sources/…/FluidAudioProvider.swift• L526-675 Sources/…/NemotronProvider.swift• L77-189 Sources/…/ParakeetSpeechModelCatalog.swift• L71-138

Model installation and verification

Model preparation downloads the selected artifact into FluidVoice's private model folder. The integration then loads the model and verifies that the selected local runtime reports ready. A successful check stores a fingerprint for the model and the active local backend. The model is therefore usable only when both the file and its current verification record agree.

Changing the model, backend, or other runtime choice can make the old verification record stale. Removing a model unloads the cached runtime first and limits file removal to the private model folder. A managed model update uses a temporary update token so the active model can be committed or the prior state can be restored if the update does not complete. After a new model becomes ready, inactive installed models can be removed unless a managed backend upgrade is still in progress.

References: Sources/…/PrivateAIIntegrationService.swift• L90-179 Sources/…/PrivateAIIntegrationService.swift• L197-219 Sources/…/PrivateAIIntegrationService.swift• L300-361 Sources/…/PrivateAIProvider.swift• L238-265 Sources/…/PrivateAIProvider.swift• L583-602 Sources/…/AIEnhancementSettingsViewModel.swift• L364-416 Sources/…/AIEnhancementSettingsViewModel.swift• L987-1055

Provider and model configuration

AI settings keep provider records, model lists, selected models, keys, and verification state in separate forms because each value has a different trust and change rule. Enhancement services resolve these values at call time instead of relying on one global model string.

Provider and model settings

The settings model stores available models by provider and stores one selected model for each provider. A provider can use its built-in model list, a list fetched from its API, or a model that the user adds manually. Fetching models uses the provider's /models endpoint and accepts common OpenAI-style data as well as Google's models list.

Private provider catalogs can also recommend a model for an enhancement task and the current hardware. They can provide user-facing summaries and use cases for the model picker. These suggestions remain separate from the canonical IDs and download data used to prepare a model.

Saved provider records retain the name, base URL, and model list. API keys are stored in the macOS Keychain rather than in the saved provider record. Built-in and custom provider keys are normalized before settings are read or written so that the same provider does not acquire split state.

Private settings add a selected private model, backend preference, context token limit, and local runtime speed options. Private model lists can be scoped by enhancement task. The default backend follows the Mac architecture. The context limit is bounded before it reaches the runtime.

References: Sources/…/SettingsStore.swift• L1426-1505 Sources/…/SettingsStore.swift• L1572-1630 Sources/…/SettingsStore.swift• L1633-1647 Sources/…/KeychainService.swift• L21-64 Sources/…/ModelRepository.swift• L28-73 Sources/…/ModelRepository.swift• L233-345 Sources/…/PrivateAIProvider.swift• L144-207 Sources/…/PrivateAIProvider.swift• L447-481 Sources/…/PrivateAIModelPresentation.swift• L24-57 Sources/…/AIEnhancementSettingsViewModel.swift• L1164-1237

Dashboard model recommendations

Dashboard model recommendations are opt-in invitations to prepare a better speech or cleanup model. Their IDs come from shipped model choices rather than from display text. Speech recommendations use the selected engine's supported language, the available models, and Mac memory. They avoid suggesting a weaker sibling when a stronger model already covers the user's choice.

The policy does not infer speech language from the user-interface locale or stale onboarding data. Cleanup recommendations treat the current cleanup model family as a valid choice. Recommendation state is separate from activation: a dismissal is kept per category so it survives relaunch, while a new model can still appear later.

Preparation and activation run as one guarded operation. Activation occurs only after preparation succeeds and the user's current selection still matches the original intent. Cancellation or a newer selection therefore cannot apply the old recommendation.

References: Sources/…/DashboardModelRecommendation.swift• L4-35 Sources/…/DashboardModelRecommendation.swift• L38-80 Sources/…/DashboardModelRecommendation.swift• L83-93 Sources/…/DashboardModelRecommendation.swift• L95-155

Meeting provider policy

Meeting post-processing uses a pinned speech-provider policy instead of changing the user's live dictation model. The policy accepts the supported Parakeet models and language combinations, chooses a language-safe default, and rejects unsupported enhancement features before a meeting provider is created.

The pinned choice keeps a meeting run stable across later settings changes. Meeting processing disables vocabulary boosting, pronunciation matching, custom dictionary rewriting, and the experimental unified final path. The constructor keeps this isolated from the global speech model and enhancement settings.

References: Sources/…/FluidAudioProvider.swift• L116-179 Sources/…/FluidAudioProvider.swift• L310-350 Sources/…/ParakeetSpeechModelCatalog.swift• L197-218 Sources/…/ParakeetSpeechModelCatalog.swift• L270-281 Tests/…/MeetingProviderOptionsTests.swift• L8-16 Tests/…/MeetingProviderOptionsTests.swift• L40-75 Tests/…/MeetingProviderOptionsTests.swift• L123-154 Tests/…/MeetingProviderOptionsTests.swift• L169-204

Verification state

Remote verification binds a provider key to a hash of its base URL and API key. A local provider may omit the key, but it still needs a valid base URL. If the URL or key changes, the stored verification no longer matches and enhancement is blocked until the provider is checked again.

Private verification binds the selected model to a fingerprint that also includes the active backend choice. Private model fingerprints are kept per model so that a verified model can remain valid while another model is selected for a different enhancement route.

The private provider contract normalizes the backend preference before it builds this fingerprint. An explicit automatic choice resolves to the current system backend, and an unset or invalid choice uses the same system default. This keeps verification tied to the runtime that will actually load the model.

References: Sources/…/DictationAIPostProcessingGate.swift• L42-64 Sources/…/DictationAIPostProcessingGate.swift• L86-98 Sources/…/SettingsStore.swift• L3051-3087 Sources/…/PrivateAIProvider.swift• L405-438 Sources/…/PrivateAIProviderPromptFormat.swift• L19-47 Sources/…/AIEnhancementSettingsViewModel.swift• L1381-1409

Enhancement route resolution

DictationProviderRoute converts prompt selection into a complete provider route. It chooses an app-bound or slot-bound prompt when one applies, then resolves the provider URL, model, and key from saved or built-in settings. Dictation enhancement uses the private runtime only for a verified private selection; all other valid routes use LLMClient.

The readiness gate checks more than the global AI switch. It checks prompt selection, app routing, provider or model verification, and the key requirement for remote endpoints. This keeps command, rewrite, and dictation flows from sending text when their selected provider state is incomplete.

References: Sources/…/DictationPostProcessingService.swift• L16-109 Sources/…/DictationAIPostProcessingGate.swift• L5-40 Sources/…/RewriteModeService.swift• L184-207 Sources/…/CommandModeService.swift• L834-872

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep provider IDs, canonical custom: keys, saved-provider lookup, and verification lookup aligned. A mismatch can show a provider in settings while enhancement cannot find its model or key.
  • Keep request endpoint rules aligned between LLMClient, provider connection testing, and model discovery. A provider can support /responses, /messages, or an OpenAI-compatible path.
  • When adding a model-specific reasoning rule, update both request parameter mapping and the temperature or token-limit decisions that protect unsupported models.
  • When changing private model IDs, task eligibility, artifact names, backend choices, or local paths, update the model registry, verification fingerprint, installation check, and prompt availability check together.
  • When adding or changing model recommendations or presentation data, keep the task and hardware rules aligned with registered model IDs. Do not let display-only model entries become download or runtime choices. Dashboard suggestions must remain invitations and must not activate a model after the user's intent changes.
  • When changing the dictation prompt marker or fallback format, keep prompt rendering and the request-body contract aligned so the transcript is sent exactly once.
  • When changing private runtime settings, unload or invalidate the cached runtime and include the setting in the verification identity when it affects model behavior.
  • When changing private model update steps, keep the update token commit and rollback paths aligned with active-model state and cleanup of inactive artifacts.
  • When changing private dictation context limits or fallback handling, keep the preflight budget check aligned with the caller's raw-transcript fallback.
  • When changing private task support or runtime lifecycle methods, keep feature availability, task-scoped model lists, compatibility defaults, and the unavailable-provider behavior aligned.
  • When changing speech model descriptors, locale support, archive revisions, or meeting language rules, keep the catalog identity, cache checks, provider readiness, pinned meeting choices, and resume identity checks aligned.

Important failure modes

TriggerConsequenceGuard
A remote provider has no base URL or a non-local provider has no keyEnhancement is rejected before a request is sentRoute readiness checks require a URL and require a key for non-local endpoints
A provider URL or key changes after verificationThe old provider appears unverified and enhancement stopsThe current URL and key must produce the stored fingerprint
A private model file is missing or its backend fingerprint is stalePrivate prompt selection is unavailable, or rewrite fails before runtime useModel installation and model-scoped verification are checked together
A private dictation input has insufficient context headroomThe private provider is not called and dictation uses the complete raw transcript fallbackPrivateAIIntegrationService checks the budget before provider generation
The private integration feature is unavailableSetup and model operations report unavailable, while dictation keeps the input unchangedThe unavailable integration shim does not report a ready runtime or attempt generation
A private task selects a model that is not enabled for that taskThe route cannot use the selected private modelTask-scoped model IDs are resolved through the private provider feature contract
A model recommendation points to an unknown or display-only modelSettings can suggest a choice that cannot be installed or loadedRuntime selection uses registered model IDs and artifact data rather than presentation entries
A dashboard recommendation targets a model that the device cannot supportNo useful recommendation appears, or the model is not offered for preparationThe policy filters by supported language, available model, and minimum memory
A dashboard preparation finishes after the user changes selection or cancelsAn old recommendation could activate against the user's current intentThe operation checks cancellation and current intent before activation
A meeting model or language is outside the supported policyMeeting provider creation fails instead of silently changing the requested setupMeetingProviderOptions.resolve validates the model, language, and enhancement flags
A selected speech locale or model is not availableThe speech provider does not become ready and transcription cannot startProviders check locale support or artifact completeness during preparation
A compact Parakeet cache has an old or missing archive revision markerThe cache cannot be trusted as the advertised model revisionThe catalog requires the expected archive checksum marker before the hosted pack is accepted
A speech model download contains incomplete files or markupThe runtime cannot load the model or may retain a bad cacheStaged validation and artifact checks run before the provider reports ready
A model list request returns an empty or unknown response shapeThe saved model list is not replaced and setup reports an errorModel discovery accepts known response shapes and fails on unknown ones
A local-compatible server omits or misreads the stream fieldA non-streaming enhancement can be handled as a streamLLMClient sends stream explicitly for both request modes
A download ends with an incomplete or untrusted artifactThe runtime cannot load the model or may retain a bad cacheRequired files are checked for completeness, response size, and non-markup content before they become cached artifacts
A model repository returns an HTML or XML block page with a successful HTTP statusThe block page can be mistaken for model data and poison the local cacheFresh and cached payloads are checked for markup before the file is accepted
A managed model update is not committed after preparationThe new artifact is not made active, or the prior model state must be restoredUpdate tokens provide explicit commit and rollback paths
A retired runtime completes after a replacement runtime startsOld runtime state can be applied to the replacement modelResidency evidence accepts completion only for the active runtime generation

Key files

FileWhy to read it
Sources/…/ModelRepository.swiftDefines built-in providers, default URLs and models, task-scoped private model lists, provider key rules, and model discovery.
Sources/…/LLMClient.swiftShows the shared remote request and response boundary for enhancement calls.
Sources/…/PrivateAIProvider.swiftDefines the optional private-provider feature and integration contracts, task support, model artifacts, model guidance metadata, download progress, runtime states, and update operations.
Sources/…/PrivateAIProviderPromptFormat.swiftDefines when the private prompt selection is available for an installed and verified model.
Sources/…/PrivateAIIntegrationService.swiftCoordinates private model preparation, runtime state, loading, safe removal, update commit or rollback, and enhancement calls.
Sources/…/ParakeetSpeechModelCatalog.swiftDefines the supported Parakeet speech models, their language and asset requirements, download identity, and installed-cache checks.
Sources/…/AppleSpeechAnalyzerProvider.swiftIllustrates system-managed locale model preparation and readiness for Apple's speech engine.
Sources/…/FluidAudioProvider.swiftShows Parakeet model preparation, pinned meeting options, and local speech enhancement settings.
Sources/…/NemotronProvider.swiftShows repository model completeness checks, language selection, and local runtime fallback for Nemotron.
Sources/…/DashboardModelRecommendation.swiftDefines dashboard invitations, language and memory filters, dismissal state, and guarded model activation.
Sources/…/DictationPostProcessingService.swiftResolves a dictation route and chooses the remote or private enhancement path.
Sources/…/DictationAIPostProcessingGate.swiftDefines the readiness checks that prevent unverified enhancement calls.
Sources/…/SettingsStore.swiftPersists provider, model, prompt, private-runtime, and verification settings.
Sources/…/KeychainService.swiftStores provider API keys in the macOS Keychain.
Sources/…/PrivateAIModelPresentation.swiftDefines user-facing model summaries and labels that remain separate from runtime model identity.
Sources/…/AIEnhancementSettingsViewModel.swiftConnects provider setup, model discovery, verification, and private model actions to settings.
Sources/…/View+AIConfiguration.swiftPresents provider, model, download, backend, and private-runtime controls.
Sources/…/ModelDownloader.swiftIllustrates repository model download rules for byte progress, completeness, cancellation, response-size checks, and bad-payload rejection.
Tests/…/MeetingProviderOptionsTests.swiftProtects the supported meeting model and language policy, pinned provider choice, and disabled enhancement features.
Tests/…/LLMClientRequestBodyTests.swiftProtects request-body behavior and the streaming and reasoning response contract.
Tests/…/PrivateAIProviderPromptFormatTests.swiftProtects model-scoped private verification behavior.
Tests/…/PrivateAIDictationTokenBudgetTests.swiftProtects the private dictation context check and its rejection before provider generation.