Skip to content

feat: add MiniMax provider support#35

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

feat: add MiniMax provider support#35
octo-patch wants to merge 1 commit into
VRSEN:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

Add MiniMax as a primary AI provider option in OpenSwarm, enabling users to run all agents with MiniMax-M2.7 models via the existing LiteLLM routing infrastructure.

Changes

  • onboard.py: Add MiniMax to the PROVIDERS list with MINIMAX_API_KEY env var and minimax/MiniMax-M2.7 as default model
  • .env.example: Document MINIMAX_API_KEY and add DEFAULT_MODEL example for MiniMax
  • README.md: List MiniMax in the "Required (choose one)" API keys section
  • tests/: Add 11 unit tests (provider registration, model resolution, env docs) and 2 integration tests (chat completion, streaming)

How it works

MiniMax is natively supported by LiteLLM (docs), so no changes to config.py are needed. The existing _resolve() function correctly routes minimax/MiniMax-M2.7 through LitellmModel, and is_openai_provider() correctly identifies it as non-OpenAI.

Models

Model Description
MiniMax-M2.7 Peak Performance. Ultimate Value. Master the Complex
MiniMax-M2.7-highspeed Same performance, faster and more agile

API docs

Test plan

  • 11 unit tests pass (provider registration, config model resolution, env documentation)
  • 2 integration tests pass (chat completion and streaming against live API)
  • Run python swarm.py, select MiniMax in onboarding wizard, verify agents work

- Add MiniMax (MiniMax-M2.7) to the onboarding wizard as a primary
  provider option, routed through LiteLLM
- Document MINIMAX_API_KEY in .env.example with DEFAULT_MODEL example
- Update README to list MiniMax in the supported providers section
- Add unit tests (11) covering provider registration, model resolution,
  and environment variable documentation
- Add integration tests (2) verifying chat completion and streaming
  against the MiniMax OpenAI-compatible API

API docs:
- Chat (OpenAI Compatible): https://platform.minimax.io/docs/api-reference/text-openai-api
- Chat (Anthropic Compatible): https://platform.minimax.io/docs/api-reference/text-anthropic-api
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