Add --title to describe, add v4.5-all model#8
Open
teox79 wants to merge 2 commits into
Open
Conversation
Suno's /api/billing/info/ endpoint no longer returns a nested
`plan: { name, plan_key }` object or a `period` string — both were
required fields on the Rust BillingInfo struct, so every command
touching billing (credits, auth, config check, models) failed to
deserialize the response and errored out.
The live response now exposes `subscription_type` (either `false` for
the free tier, or the active plan's `plan_key` string) plus a `plans`
array describing the full catalog (id, key, name, pricing, features).
Verified against a live authenticated call to the current API.
Replace the required plan/period/renews_on fields with
subscription_type + plans, and add BillingInfo::plan_name() to resolve
a human-readable plan name from that catalog. Update the two call
sites that read info.plan.name and the credits table renderer
accordingly.
`describe` (inspiration mode) had no --title, forcing a mismatched custom-mode `generate` call just to name the clip. Add it directly to the GenerateRequest. Add the free-tier model v4.5-all (chirp-auk-turbo) to ModelVersion — missing from the CLI's enum even though it's the only model reporting can_use: true for free-tier accounts.
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.
Why
describe(inspiration mode) had no--titleflag, forcing users to fall back to a mismatched custom-modegeneratecall just to name the clip.Separately, the free-tier model
v4.5-all(chirp-auk-turbo) was missing from the CLI'sModelVersionenum, even though it's the only model reportingcan_use: truefor free-tier accounts — so free users had no way to select their actual default model by name.What changed
src/cli.rs: added a--titleflag toDescribeArgs; addedv4.5-all(chirp-auk-turbo) as aModelVersionvariant.src/main.rs: passargs.titlethrough to theGenerateRequestin thedescribecommand.Split out from the same local branch as #7 (billing schema fix) so this smaller, unrelated addition can be reviewed independently.