Skip to content

feat: add MiniMax provider support (M3 default)#130

Open
octo-patch wants to merge 2 commits into
HKUDS:mainfrom
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax provider support (M3 default)#130
octo-patch wants to merge 2 commits into
HKUDS:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

@octo-patch octo-patch commented May 13, 2026

Summary

Add MiniMax as a new LLM provider using its OpenAI-compatible API, with MiniMax-M3 as the default model.

Changes

  • Core registry (core/providers/registry.py): Add ProviderSpec for minimax with openai_compat backend and default base URL https://api.minimax.io/v1
  • Core config (core/config.py): Add minimax field to ProvidersConfig
  • Nanobot registry (nanobot/nanobot/providers/registry.py): Add ProviderSpec with LiteLLM openai prefix and minimax base keyword detection
  • Nanobot config (nanobot/nanobot/config/schema.py): Add minimax field to ProvidersConfig
  • Example config (deepcode_config.json.example): Add minimax provider entry with ${MINIMAX_API_KEY}
  • README: Add MiniMax to the provider configuration example; update model recommendations to use MiniMax-M3
  • Tests (tests/minimax_provider_test.py): Unit tests covering registry lookup (including M3 and M2.7), config parsing, and provider instantiation

Configuration

{
  "agents": {
    "defaults": {
      "provider": "minimax",
      "model": "minimax/MiniMax-M3"
    }
  },
  "providers": {
    "minimax": {
      "apiKey": "${MINIMAX_API_KEY}"
    }
  }
}

Available Models

Model ID Description
MiniMax-M3 512K context, up to 128K output, image input support (default)
MiniMax-M2.7 Previous generation model
MiniMax-M2.7-highspeed Previous generation low-latency variant

API Reference

octo-patch added 2 commits May 13, 2026 16:24
- Add MiniMax (minimax) as an OpenAI-compatible provider in both core
  and nanobot registries
- Register MINIMAX_API_KEY environment variable
- Default base URL: https://api.minimax.io/v1
- Models: MiniMax-M2.7, MiniMax-M2.7-highspeed
- Add unit tests for registry, config, and provider instantiation
- Update deepcode_config.json.example and README

API docs: https://platform.minimax.io/docs/api-reference/text-openai-api
- Update README references to use MiniMax-M3 as the recommended model
- Add unit test for M3 model lookup, keep M2.7 lookup as alternative
- Remove older model references (M2.5/M2.1/M2/M1)

M3 features: 512K context window, up to 128K output, image input support.
@octo-patch octo-patch changed the title feat: add MiniMax provider support feat: add MiniMax provider support (M3 default) Jun 5, 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