Repository navigation
feat: add MiniMax H3 text-to-image tools - #1008
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 image toolset offers MiniMax image-01 but cannot send a prompt to the H3 image generation API or decode its output into an IntentKit attachment.
Description
Add two opt-in tools,
image_minimax_h3andimage_minimax_h3_highspeed. Each accepts a text prompt, requests one image asb64_json, and passes the decoded bytes to the shared attachment uploader. An image-level error is surfaced to the caller. A single generation request can take ten minutes, so the client uses a 610-second timeout and submits once.Both tools use the configured MiniMax API key and the existing 30-credit MiniMax image tool price. Deployments select the international API (default) or the China API with
MINIMAX_IMAGE_REGION=global|cn. The existingimage_minimaxtool keeps its image-01 generation and reference-image behavior.International API · China API
Type of Change
Checklist
Verification
sh lint.sh cipassed (Ruff, BasedPyright, import layers and dependency checks).OPENROUTER_API_KEY=test uv run pytest -q -m 'not bdd and not integration'completed with 1,787 tests passed and 113 deselected. The placeholder key is for existing mocked tests. The new tests use an in-process HTTP transport.