Skip to content

Commit 881d822

Browse files
committed
fix: apiDocs path, description typo, last-frame/subject-image mutual exclusion
- Change apiDocs from full URL to path (fixes broken URL in --help) - Remove stray '+' in I2V description - Error when --last-frame and --subject-image are combined (different modes)
1 parent 7270aec commit 881d822

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/commands/video/generate.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { promptText, failIfMissing } from '../../utils/prompt';
2121

2222
export default defineCommand({
2323
name: 'video generate',
24-
description: 'Generate a video (T2V: Hailuo-2.3 / 2.3-Fast / Hailuo-02 | I2V: + I2V-01 / I2V-01-Director / I2V-01-live | S2V: S2V-01)',
25-
apiDocs: 'https://platform.minimax.io/docs/api-reference/video-generation',
24+
description: 'Generate a video (T2V: Hailuo-2.3 / 2.3-Fast / Hailuo-02 | I2V: I2V-01 / I2V-01-Director / I2V-01-live | S2V: S2V-01)',
25+
apiDocs: '/docs/api-reference/video-generation',
2626
usage: 'mmx video generate --prompt <text> [flags]',
2727
options: [
2828
{ flag: '--model <model>', description: 'Model ID (default: MiniMax-Hailuo-2.3). Auto-switched to Hailuo-02 with --last-frame, or S2V-01 with --subject-image.' },
@@ -62,6 +62,15 @@ export default defineCommand({
6262
}
6363
}
6464

65+
// Validate mutually exclusive mode flags
66+
if (flags.lastFrame && flags.subjectImage) {
67+
throw new CLIError(
68+
'--last-frame and --subject-image cannot be used together (SEF and S2V are different modes).',
69+
ExitCode.USAGE,
70+
'mmx video generate --prompt <text> --first-frame <path> --last-frame <path>',
71+
);
72+
}
73+
6574
// Determine model: explicit --model overrides auto-switch
6675
const explicitModel = flags.model as string | undefined;
6776
let model = explicitModel || 'MiniMax-Hailuo-2.3';

0 commit comments

Comments
 (0)