Skip to content

feat: add MiniMax as inference provider with M3 as default#272

Open
octo-patch wants to merge 4 commits into
Conway-Research:mainfrom
octo-patch:feat/add-minimax-provider
Open

feat: add MiniMax as inference provider with M3 as default#272
octo-patch wants to merge 4 commits into
Conway-Research:mainfrom
octo-patch:feat/add-minimax-provider

Conversation

@octo-patch

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

Copy link
Copy Markdown

Summary

Adds MiniMax as a first-class inference provider and upgrades the default model to MiniMax-M3.

Changes

  • Add a new minimax provider in src/inference/provider-registry.ts using the OpenAI-compatible endpoint at https://api.minimax.io/v1 and MINIMAX_API_KEY.
  • Model list:
    • MiniMax-M3 (default, 524K context, 128K max output, vision-capable, $0.6/M input, $2.4/M output)
    • MiniMax-M2.7 (reasoning, $0.3/M input, $1.2/M output)
    • MiniMax-M2.7-highspeed (fast tier, $0.6/M input, $2.4/M output)
  • Removed earlier generations (M2.5 / M2.5-highspeed) — M3 supersedes them.
  • Mirror the same model set in STATIC_MODEL_BASELINE (src/inference/types.ts).
  • Add minimaxApiKey plumbing through src/conway/inference.ts, src/config.ts, src/types.ts, src/agent/loop.ts, src/setup/wizard.ts, and src/setup/configure.ts (CLI prompts and config flow).
  • Update unit tests in src/__tests__/inference/provider-registry.test.ts to assert M3 as the first/default model.
  • README updated to advertise MiniMax M3 alongside the other frontier models on Conway Cloud.

Why

M3 is MiniMax's latest generation: 512K context window, 128K max output, and image input support. It supersedes M2.7/M2.5 and is the right default for Conway Automaton's autonomous-agent workload.

Testing

  • vitest run src/__tests__/inference/provider-registry.test.ts — 34/34 tests passing.
  • Verified provider registry resolves MiniMax-M3 for the reasoning tier by default.
  • Confirmed minimax is included in fallback candidates for both reasoning and fast tiers.

PR Bot and others added 3 commits March 12, 2026 19:26
Add MiniMax (api.minimax.io) as a first-class inference provider alongside
OpenAI, Anthropic, and others. Both MiniMax-M2.5 (reasoning tier) and
MiniMax-M2.5-highspeed (fast tier) are now available for model selection.

Changes:
- Add "minimax" to ModelProvider type and minimaxApiKey to config
- Register MiniMax models in provider-registry defaults (enabled)
- Add MiniMax backend routing in inference client with proper
  temperature clamping (MiniMax rejects temperature=0)
- Seed MiniMax models in STATIC_MODEL_BASELINE with correct
  parameterStyle ("max_tokens")
- Wire MINIMAX_API_KEY through setup wizard, configure menu,
  agent loop env export, and CLI entrypoint
- Add provider-registry tests for MiniMax provider

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The STATIC_MODEL_BASELINE now includes MiniMax models, so the
valid provider list must include "minimax".
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model
- Keep all previous models (M2.5, M2.5-highspeed) as alternatives
- Update related unit tests
@octo-patch octo-patch changed the title feat: add MiniMax as inference provider feat: add MiniMax as inference provider with M2.7 as default Mar 18, 2026
@octo-patch octo-patch force-pushed the feat/add-minimax-provider branch from 627776e to 242e7c8 Compare March 18, 2026 05:54
- Add MiniMax-M3 to model list and set as default (524K context, 128K output, vision support)
- Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives
- Remove older models (MiniMax-M2.5 / MiniMax-M2.5-highspeed)
- Update related unit tests and static model baseline
- Update README mention from M2.7 to M3
@octo-patch octo-patch changed the title feat: add MiniMax as inference provider with M2.7 as default feat: add MiniMax as inference provider with M3 as default Jun 3, 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