Skip to content

feat: add MiniMax as a supported LLM provider#1046

Merged
VinciGit00 merged 1 commit intoScrapeGraphAI:mainfrom
octo-patch:feature/add-minimax-provider
Mar 15, 2026
Merged

feat: add MiniMax as a supported LLM provider#1046
VinciGit00 merged 1 commit intoScrapeGraphAI:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Contributor

Summary

  • Add MiniMax as a new LLM provider with OpenAI-compatible API integration
  • Register MiniMax models (MiniMax-M1, M2, M2.5, M2.5-highspeed) in the model token registry
  • Add provider routing in the abstract graph factory method
  • Update README to list MiniMax as a supported provider

Details

MiniMax offers an OpenAI-compatible API, so the integration follows the same pattern as DeepSeek and xAI — a lightweight wrapper around ChatOpenAI that sets the correct API base URL.

Usage

graph_config = {
    "llm": {
        "api_key": "YOUR_MINIMAX_API_KEY",
        "model": "minimax/MiniMax-M2.5",
    },
    "verbose": True,
    "headless": False,
}

Models supported

Model Context Window
MiniMax-M1 1,000,000
MiniMax-M1-40k 40,000
MiniMax-M2 204,000
MiniMax-M2.5 204,000
MiniMax-M2.5-highspeed 204,000

Test plan

  • MiniMax model class imports correctly
  • Model tokens registered and retrievable
  • API base URL set correctly to https://api.minimax.io/v1
  • Existing tests pass (16/16 that are not pre-existing failures)

MiniMax provides an OpenAI-compatible API, making integration
straightforward. This adds:

- MiniMax model wrapper class (OpenAI-compatible)
- Model token mappings for MiniMax-M1, M2, and M2.5 models
- Provider routing in abstract_graph factory
- README update listing MiniMax as a supported provider
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Mar 14, 2026
@VinciGit00 VinciGit00 merged commit d83ec57 into ScrapeGraphAI:main Mar 15, 2026
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 1.74.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released on @stable size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants