Skip to content

feat: add MiniMax as first-class LLM provider with M3 default#275

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

feat: add MiniMax as first-class LLM provider with M3 default#275
octo-patch wants to merge 2 commits into
FellouAI:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

@octo-patch octo-patch commented Mar 21, 2026

Summary

Add MiniMax as a dedicated LLM provider, allowing users to configure MiniMax models with provider: "minimax" instead of using the generic openai-compatible provider. The default model is MiniMax-M3 — MiniMax's latest model with 512K context window and up to 128K output.

Changes

  • packages/eko-core/src/types/llm.types.ts: Add "minimax" to LLMprovider type union
  • packages/eko-core/src/llm/rlm.ts: Add minimax provider branch in getLLM() using createOpenAICompatible with default base URL https://api.minimax.io/v1
  • README.md: Add MiniMax example in quickstart code block with MiniMax-M3 as default
  • packages/eko-core/test/llm/minimax.test.ts: Add 8 unit tests + 3 integration tests covering M3 / M2.7 / M2.7-highspeed

Usage

const llms: LLMs = {
  default: {
    provider: "minimax",
    model: "MiniMax-M3",  // or MiniMax-M2.7, MiniMax-M2.7-highspeed
    apiKey: "your-minimax-api-key"
  }
};

MiniMax API is OpenAI-compatible, so this integration uses the existing @ai-sdk/openai-compatible package with no new dependencies.

Available Models

Model Context Window Best For
MiniMax-M3 (default) 512K tokens, 128K max output Latest, most capable; supports image input
MiniMax-M2.7 Previous generation Stable fallback
MiniMax-M2.7-highspeed Previous generation, lower latency Fast inference

Test Plan

  • 8 unit tests pass (type validation, config, multi-model, multi-provider)
  • 3 integration tests included (non-streaming, streaming, tool calling)
  • No new dependencies added
  • Follows existing provider patterns (modelscope, openrouter)

Add MiniMax (https://www.minimaxi.com) as a dedicated LLM provider using
the OpenAI-compatible API via @ai-sdk/openai-compatible. Users can now
configure MiniMax models (MiniMax-M2.7, MiniMax-M2.5, MiniMax-M2.5-highspeed)
with provider: "minimax" instead of using the generic openai-compatible
provider.

Changes:
- Add "minimax" to LLMprovider type union
- Add minimax provider branch in getLLM() with default base URL
- Add MiniMax example in README quickstart
- Add 8 unit tests + 3 integration tests
@octo-patch octo-patch force-pushed the feature/add-minimax-provider branch from bfea0a6 to 866264d Compare March 21, 2026 07:59
- Add MiniMax-M3 to model list and set as default
- Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed
- Remove older models (M2.5/M2.1/M2/M1)
- Update related tests

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
@octo-patch octo-patch changed the title feat: add MiniMax as first-class LLM provider feat: add MiniMax as first-class LLM provider with 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