Skip to content

feat: add MiniMax as built-in LLM provider#282

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

feat: add MiniMax as built-in LLM provider#282
octo-patch wants to merge 1 commit into11cafe:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

Add MiniMax as a first-class built-in LLM provider, giving users access to MiniMax M2.7, M2.5, and M2.5-highspeed models via the OpenAI-compatible API.

Changes

  • Backend (config_service.py): Add MiniMax to DEFAULT_PROVIDERS_CONFIG with API URL and three text models
  • Frontend (AddProviderDialog.tsx): Add MiniMax to predefined PROVIDER_OPTIONS dropdown with preset models and API URL
  • Frontend (constants.ts): Add MiniMax to PROVIDER_NAME_MAPPING with display name and icon
  • README: Mention MiniMax in supported providers list (both EN and ZH)
  • Tests: 16 unit tests + 3 integration tests covering config, routing, and API connectivity

How it works

MiniMax provides an OpenAI-compatible API, so it works seamlessly with the existing ChatOpenAI client in agent_service.py. No additional dependencies required. Users just need to:

  1. Add MiniMax from the provider dropdown in Settings
  2. Enter their MiniMax API key
  3. Select a model and start chatting

Test plan

  • 16 unit tests pass (python -m pytest tests/test_minimax_provider.py)
  • 3 integration tests pass with real API calls (python -m pytest tests/test_minimax_integration.py)
  • Manual: add MiniMax provider in Settings UI, verify models appear, send a chat message

Add MiniMax (https://www.minimaxi.com) as a first-class LLM provider
with M2.7, M2.5, and M2.5-highspeed models via OpenAI-compatible API.

Changes:
- Backend: add MiniMax to DEFAULT_PROVIDERS_CONFIG with API URL and models
- Frontend: add MiniMax to AddProviderDialog PROVIDER_OPTIONS with preset models
- Frontend: add MiniMax to PROVIDER_NAME_MAPPING with icon
- README: mention MiniMax in supported providers
- Tests: 16 unit tests + 3 integration tests
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