Add MiniMax as LLM provider for SVG generation#23
Open
octo-patch wants to merge 1 commit intoResearAI:mainfrom
Open
Add MiniMax as LLM provider for SVG generation#23octo-patch wants to merge 1 commit intoResearAI:mainfrom
octo-patch wants to merge 1 commit intoResearAI:mainfrom
Conversation
Add MiniMax (MiniMax-M2.7, 204K context) as a first-class LLM provider using OpenAI-compatible API. MiniMax excels at multimodal SVG generation and text understanding but does not support image generation. Changes: - Add MiniMax to PROVIDER_CONFIGS with base_url and default models - Implement _call_minimax_text/multimodal with temperature clamping (0,1] - Add think-tag stripping for MiniMax reasoning model responses - Add --figure_path CLI flag to provide pre-generated figures (skip step 1) - Add MINIMAX_API_KEY env var auto-detection - Update web UI provider dropdown with MiniMax option - Update README.md and README_ZH.md with MiniMax docs and usage examples - Add 24 tests (21 unit + 3 integration)
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.
Summary
Add MiniMax as a first-class LLM provider for SVG generation in AutoFigure-Edit. MiniMax offers OpenAI-compatible APIs with strong multimodal capabilities (MiniMax-M2.7, 204K context window).
Key Changes
--provider minimax): text + multimodal LLM calls via OpenAI SDK--figure_pathflag: Provide a pre-generated figure to skip step 1 (image generation), enabling MiniMax for SVG-only workflowsFiles Changed (7 files, ~600 additions)
Test Plan