Skip to content

feat: add MiniMax as a supported LLM provider#1046

Open
octo-patch wants to merge 1 commit intoScrapeGraphAI:mainfrom
octo-patch:feature/add-minimax-provider
Open

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

Conversation

@octo-patch
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant