File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { promptText, failIfMissing } from '../../utils/prompt';
2121export default defineCommand ( {
2222 name : 'image generate' ,
2323 description : 'Generate images (image-01 / image-01-live)' ,
24- apiDocs : 'https://platform.minimax.io /docs/api-reference/image-generation-t2i' ,
24+ apiDocs : '/docs/api-reference/image-generation-t2i' ,
2525 usage : 'mmx image generate --prompt <text> [flags]' ,
2626 options : [
2727 { flag : '--prompt <text>' , description : 'Image description' , required : true } ,
@@ -91,7 +91,7 @@ export default defineCommand({
9191 const body : ImageRequest = {
9292 model : 'image-01' ,
9393 prompt,
94- aspect_ratio : ( flags . aspectRatio as string ) || undefined ,
94+ aspect_ratio : ( width !== undefined && height !== undefined ) ? undefined : ( ( flags . aspectRatio as string ) || undefined ) ,
9595 n : ( flags . n as number ) ?? 1 ,
9696 seed : flags . seed as number | undefined ,
9797 width : width ,
You can’t perform that action at this time.
0 commit comments