Skip to content

Commit 59eb48b

Browse files
author
Raylan LIN
committed
feat(music): add --model flag to music cover command
- Users can now override model with --model (music-cover or music-cover-free) - Default still uses musicCoverModel() → music-cover (sk-cp) / music-cover-free (free tier)
1 parent 65c4a3f commit 59eb48b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/commands/music/cover.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ import { musicCoverModel } from './models';
1313

1414
export default defineCommand({
1515
name: 'music cover',
16-
description: 'Generate a cover version of a song based on reference audio (music-cover-free)',
16+
description: 'Generate a cover version of a song based on reference audio (music-cover / music-cover-free)',
1717
usage: 'mmx music cover --prompt <text> (--audio <url> | --audio-file <path>) [--lyrics <text>] [--out <path>] [flags]',
1818
options: [
19+
{ flag: '--model <model>', description: 'Model: music-cover (Token Plan), music-cover-free (Pay-as-you-go, default). Override only if needed.' },
1920
{ flag: '--prompt <text>', description: 'Target cover style, e.g. "Indie folk, acoustic guitar, warm male vocal"' },
2021
{ flag: '--audio <url>', description: 'URL of the reference audio (mp3, wav, flac, etc. — 6s to 6min, max 50MB)' },
2122
{ flag: '--audio-file <path>', description: 'Local reference audio file (auto base64-encoded)' },
@@ -66,7 +67,7 @@ export default defineCommand({
6667
const outPath = (flags.out as string | undefined) ?? `cover_${ts}.${ext}`;
6768
const format = detectOutputFormat(config.output);
6869

69-
const model = musicCoverModel(config);
70+
const model = (flags.model as string) || musicCoverModel(config);
7071
const body: MusicRequest = {
7172
model,
7273
prompt,

0 commit comments

Comments
 (0)