dubbing: carry the free 15-second preview on DubbingResult (sonilo 0.21.0, sonilo-cli 0.20.0) - #46
Merged
Merged
Conversation
…onilo 0.21.0 and sonilo-cli 0.20.0 The API now gives every self-serve account one free video translation run as a 15-second preview: the first single-language call without scripts translates only the first 15 seconds, at no charge, and the task carries `trial_preview` (preview_seconds, source_duration_seconds, trimmed, languages, full_video_cost_usd, message). DubbingResult dropped that field, and both READMEs and context7 said dubbing had no free trial. - DubbingResult.trial_preview (dict or None), parsed whole; a non-object reads as "not a preview". - sonilo-cli: after the "Wrote …" line, print the preview's message so the 15 s clip is never mistaken for the whole video. - READMEs (free-trial tables + dubbing sections), context7 rule. - sonilo 0.21.0 (pyproject + _version), sonilo-cli 0.20.0 with its core pin widened to >=0.21.0,<0.22.
Lightsage docs evalsWaiting for the staging docs URL before running evals. Lightsage will start the selected PR evals automatically when GitHub reports a successful docs deployment for this PR. This usually happens within 15 minutes. Commit: |
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.
What
The API now gives every self-serve account one free video translation run as a 15-second preview (sonilo-api-dashboard #374, live 2026-09-19): the first single-language call without scripts translates only the first 15 seconds of the video, at no charge, and the task carries
trial_previewin every state:DubbingResultis a dataclass with explicit fields, so the block was dropped on parse; both READMEs and the context7 rule said dubbing had no free trial.Changes
DubbingResult.trial_preview: Optional[Dict[str, Any]]— passed through whole (its fields are server-owned, like the subtitle reports); a non-object reads asNone.sonilo-cli dubbing: after theWrote …line, prints the preview'smessage, so a 15 s clip is never mistaken for the whole translation.1, as a 15-second previewfor dubbing) and the dubbing sections;context7.jsonrule (kept under the 255-char limit).sonilo0.21.0 (pyproject.toml+_version.py),sonilo-cli0.20.0 with its core pin widened tosonilo>=0.21.0,<0.22.Tests
Two new parse tests (preview carried;
Noneon a paid run or a malformed value). Run from a CI-identical throwaway venv (pip install -e ".[dev]" -e ./sonilo-video-kit[dev] -e ./sonilo-cli[dev]): core 359, sonilo-cli 182, sonilo-video-kit 53 — all passed.Release order
Tag
v0.21.0first, thensonilo-cli-v0.20.0— the CLI requiressonilo>=0.21.0, and the reverse order leavespip install sonilo-cliunresolvable for the window between.