Repository navigation
feat(media): support MiniMax H3 text-to-image generation - #421
Open
octo-patch wants to merge 1 commit into
Open
octo-patch wants to merge 1 commit into
octo-patch wants to merge 1 commit into
Conversation
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.
Reason: The media CLI and MCP tool currently support only the legacy MiniMax image models. Operators need an explicit way to select H3 for text-to-image generation.
Register MiniMax-H3-Image and MiniMax-H3-Image-Highspeed on the global and China endpoints. The existing image-01 default and reference-image workflow stay available. H3 uses one HTTPS POST with a ten-minute minimum deadline. A partial batch imports successful images into the media store and reports each item-level failure.
Validation used Node 22 and mocked provider responses. The built CLI was exercised against a local HTTPS server for a partial HTTP 200 response and an HTTP 422 response. Each invocation sent one generation request.
npm run buildnpm run lintnpm --workspace @memorix/ai test -- minimax-images.test.ts minimax-h3-images.test.ts(17 tests)npm test -- tests/media/minimax.test.ts tests/integration/media-mcp.test.ts tests/cli/media-command.test.ts tests/evaluation/media-schema-honesty.test.ts(24 tests)npm testin a private temporary directory (3,366 passed, 5 skipped)