Repository navigation
Conversation
Off by default. After rule-based cleanup, send the transcript text and vocabulary to the Anthropic Messages API (claude-opus-5-5, low effort, server-side refusal fallback) with the user's key from Keychain to fix grammar, punctuation and self-corrections. Timeouts, errors, refusals, truncation and replies that no longer read as the same dictation (such as an answer to a dictated question) keep the cleaned text, and the status says why.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #11; retarget to
mainafter it merges.Problem
Rule-based cleanup can't fix grammar or punctuation, or resolve self-corrections like "meet at 3, no wait, 4". This adds an optional LLM pass for that.
Change
claude-opus-5-5).POST /v1/messages,anthropic-version: 2026-10-21) over raw HTTP, since there's no official Swift SDK. The request usesoutput_config.effort: lowand server-side refusal fallback (fallbacks: "default"with betaserver-side-fallback-2026-07-01). Audio and screen content are never sent.<transcript>tags with instructions to edit, never answer.stop_reasonofrefusalormax_tokens,Validation
Risks
claude-haiku-5-5is faster; set it in the model field.