Skip to content

feat: add MiniMax provider support#130

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

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

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

Add MiniMax as a new LLM provider using its OpenAI-compatible API.

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
  • Tests (tests/minimax_provider_test.py): 15 unit tests covering registry lookup, config parsing, and provider instantiation

Configuration

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

Available Models

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

API Reference

- 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
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