Repository navigation
Add model variants to targets, run() and the CLI - #18
Open
audioshaker wants to merge 1 commit into
Open
audioshaker wants to merge 1 commit into
audioshaker wants to merge 1 commit into
Conversation
The API now takes a `variant` on each task target, for accounts it has enabled one for (the diarization previews, preview_a to preview_d). The library sends it from Target(variant=...), run(variant=...) applies it to every model named by id, and `audioshake run --variant NAME` does the same from the command line. TargetResult.variant reads back what ran, and `tasks get` shows it as `model (variant)`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch has not been deployed
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
The API now accepts a
varianton each task target, for accounts it has enabled one for (currently the diarization previewspreview_a–preview_d; see the #deployers thread). This adds it end to end.Target(variant=...)is sent as"variant"on the target.run()on both clients andbuild_targets()takevariant=, applied to every model named by id, the same wayresidualis; the API does not say which models have variants, so the client passes it through rather than filtering by catalog.TargetResult.variantreads back what the API reports.audioshake run --variant NAME. The run header shows it, andtasks get/tasks listshowdiarization (preview_a)when the API echoes it.docs/cli.md,docs/library.md, README example, the plugin skill (with a gotcha that comparing two variants is two runs on the sameasset:ID), changelog under Unreleased, both plugin manifests bumped to 0.3.12.Two judgment calls:
--variantapplies to every model in the run, so-m diarization,transcription --variant preview_ais rejected by the API as a whole. Per-model control is viaTargetin the library.Test plan
uv run pytest(new tests for serialization,build_targets, therun()payload, CLI forwarding and thetasks getlabel)uv run ruff check . && uv run ruff format --check .uv run mypyaudioshake run x.wav -m diarization --variant preview_a -f json, and confirm a non-allowlisted account gets the API's 400 before any task exists🤖 Generated with Claude Code