feat(cli): unify transcribe + stream LLM Gateway under --llm#5
Merged
Conversation
- transcribe: rename --llm-gateway-prompt to --llm (one-shot after the
transcript, repeatable so prompts chain on each other's output)
- stream: add live --llm that re-runs the prompt chain over the growing
transcript on every finalized turn (Rich panel on a TTY, {"turns","output"}
NDJSON when piped), replacing the old one-shot-at-end behavior; reject
--llm together with -o text
- stream --show-code: generate the runnable live transcribe->LLM-per-turn loop
- add llm.run_chain helper; extract FollowRenderer into follow.py, shared by
`aai llm -f` and `aai stream --llm`; drop now-dead StreamRenderer.llm
- default LLM Gateway model -> claude-haiku-4-5-20251001
- docs: add README "API key & security" section; lead the live-LLM docs with
--llm and keep the stream|llm pipe as the composable alternative; prune
pipe recipes now covered by --llm
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Unifies the LLM Gateway surface across
transcribeandstreamunder a single--llmflag, makes streaming LLM use a first-class live mode, switches the default model, and adds a security section to the README.--llmeverywhereaai transcribe --llm "…"— renamed from--llm-gateway-prompt. One-shot after the transcript completes; repeatable so prompts chain on each other's output.aai stream --llm "…"— new live mode: re-runs the prompt chain over the growing transcript on every finalized turn (Rich panel on a TTY,{"turns","output"}NDJSON when piped). Replaces the old one-shot-at-end behavior. The fused, single-process equivalent ofaai stream -o text | aai llm -f.--llmtogether with-o textis rejected (contradictory).aai stream --llm … --show-codegenerates the runnable live transcribe→LLM-per-turn Python loop.Internals
llm.run_chain()helper for the shared prompt-chaining logic.FollowRendererintoassemblyai_cli/follow.py, now shared byaai llm -fandaai stream --llm.StreamRenderer.llm()and its tests.Other changes bundled in this commit
claude-haiku-4-5-20251001.--llmand kept thestream | llmpipe as the composable alternative; pruned pipe recipes now covered by--llm.Test plan
Full
check.shis green:🤖 Generated with Claude Code