Repository navigation
DEV-2200: fix stale models, file inputs and doc inconsistencies - #11
Merged
Merged
Conversation
The examples and README referenced models that are no longer served (Ltx2_19B_Dist_FP8, ltx-audio2video, MusicGen) plus two placeholders. Switch to Ltx2_5_22B_Dist_INT8 for text, image and audio to video, AceStep_1_5_Turbo for music, FlashVSR_Tiny for video upscale and Nanonets_Ocr_S_F16 for OCR, and keep the parameters within those models' limits (24 fps, no steps/guidance for LTX 2.5; fixed steps and guidance for AceStep). Checked against the price endpoints. File arguments were shown as plain strings, which the SDK rejects; they now use Path(...), and the comments no longer claim a str path is accepted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found by an audit of the docs and examples against the SDK code and the current model catalogue: - FileInput is Path, bytes or a binary file object; docs no longer say a str path is accepted. - Voice cloning example uses Qwen3_TTS_12Hz_1_7B_Base (Kokoro cannot clone) with its 5-15 s reference and mp3 output; the reference-mode example uses MiniMaxH3_33B_Turbo_INT8 instead of a placeholder. - Docstrings: point to transcription.create (audio.transcribe does not exist), use Flux1schnell in the client usage, drop leftover "v2" asides. - API reference: models.list page cap is 50, video upscale scale is per model card, the constructor lists max_retry_after / http_client / owns_http_client, and failed jobs are "usually not" sent over the socket, matching the README. - Integration tests are excluded unless `pytest -m integration` is given, and only pick standard (non-test) models. - The webhook example prints the failure fields. Co-Authored-By: Claude Opus 5.5 <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.
Docs, examples, docstrings and test config; no change to SDK behaviour, so no version bump.
Models (checked against the production catalogue and price endpoints)
Ltx2_19B_Dist_FP8/ltx-audio2video→Ltx2_5_22B_Dist_INT8;MusicGen→AceStep_1_5_XL_Turbo_INT8;vid-upscale-model→FlashVSR_Tiny(scale=2);<ocr-model>→Nanonets_Ocr_S_F16;<model-with-reference-support>→MiniMaxH3_33B_Turbo_INT8; voice cloningKokoro→Qwen3_TTS_12Hz_1_7B_Base; client docstringssdxl→Flux1schnell.File inputs
Path(...); docs no longer say a barestrpath is accepted (the SDK rejects it).Docs consistency
models.listpage cap 50; video upscalescaleper model card; constructor docs listmax_retry_after,http_client,owns_http_client; realtime failure wording consistent ("usually not" over WebSocket);describedocstring points totranscription.create; leftover "v2" asides removed; webhook example prints the failure fields.Tests
pytest -m integration(addoptsin pyproject) and pick standard, non-test models.🤖 Generated with Claude Code