Skip to content

feat: upgrade MiniMax default model to M3#4

Open
octo-patch wants to merge 3 commits into
Sphere-AI-Lab:mainfrom
octo-patch:feature/add-minimax-provider
Open

feat: upgrade MiniMax default model to M3#4
octo-patch wants to merge 3 commits into
Sphere-AI-Lab:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

@octo-patch octo-patch commented Mar 15, 2026

Summary

Upgrade the OpenAI-compatible prompt expander to use MiniMax-M3 as the default model.

Changes

  • Switch the default model for the MiniMax backend from MiniMax-M2.7 to MiniMax-M3 in wan/utils/prompt_extend.py
  • Update the class docstring and inline docstring to reflect the new default
  • Update README.md so the MiniMax backend description references M3

Why

MiniMax-M3 is the latest flagship model, offering a 512K context window, up to 128K output, and image input support — a cost-effective choice for prompt expansion.

Testing

  • Verified Python syntax compiles cleanly for the modified file
  • Verified the OpenAICompatiblePromptExpander default resolves to MiniMax-M3 when MINIMAX_API_KEY is set
  • Existing call signature/API is preserved; users may still pass an explicit model_name (e.g. MiniMax-M2.7) to opt out

Add OpenAICompatiblePromptExpander class that works with any
OpenAI-compatible LLM API for prompt expansion. This enables users to
choose from multiple cloud LLM providers (MiniMax, OpenAI, DeepSeek,
etc.) instead of being limited to DashScope or local Qwen models.

Key changes:
- New OpenAICompatiblePromptExpander class in wan/utils/prompt_extend.py
  following the existing PromptExpander base class pattern
- Auto-detects MiniMax vs generic OpenAI setup via environment variables
  (MINIMAX_API_KEY or OPENAI_API_KEY + OPENAI_BASE_URL)
- Handles reasoning model output by stripping <think> blocks
- Added openai dependency to requirements.txt
- Updated README with documentation of available prompt expansion backends
- Update default model from MiniMax-M2.5 to MiniMax-M2.7
- Update docstrings and README to reference M2.7
- MiniMax-M2.7 is the latest flagship model with enhanced reasoning
  and coding capabilities
@octo-patch octo-patch force-pushed the feature/add-minimax-provider branch from 095057a to 40c4bbc Compare March 18, 2026 18:47
@octo-patch octo-patch changed the title feat: add OpenAI-compatible prompt expander (MiniMax, OpenAI, etc.) feat: add OpenAI-compatible prompt expander (MiniMax M2.7, OpenAI, etc.) Mar 18, 2026
@octo-patch octo-patch force-pushed the feature/add-minimax-provider branch from 2e91333 to 40c4bbc Compare March 18, 2026 18:47
- Update default model from MiniMax-M2.7 to MiniMax-M3
- Update docstring and inline references to reflect M3
- Update README backend description accordingly

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
@octo-patch octo-patch changed the title feat: add OpenAI-compatible prompt expander (MiniMax M2.7, OpenAI, etc.) feat: upgrade MiniMax default model to M3 Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant