Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(model): add MiniMax provider prefix for cross-platform model normalization#463

Merged
tmchow merged 1 commit into
EveryInc:mainfrom
octo-patch:feature/add-minimax-provider
Mar 31, 2026
Merged

feat(model): add MiniMax provider prefix for cross-platform model normalization#463
tmchow merged 1 commit into
EveryInc:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown
Contributor

Summary

Adds MiniMax model recognition to the addProviderPrefix() function in src/utils/model.ts, so that MiniMax models (e.g. minimax-m2.7, MiniMax-M2.5-highspeed) are correctly namespaced as minimax/ when converting plugins for multi-provider target platforms.

Changes

  • src/utils/model.ts: Add minimax- pattern (case-insensitive) to addProviderPrefix(), mapping MiniMax model IDs to the minimax/ provider prefix
  • tests/model-utils.test.ts: Add unit tests for MiniMax model prefixing (lowercase, highspeed variant, PascalCase)
  • tests/qwen-converter.test.ts: Add converter test verifying MiniMax models get minimax/ prefix in Qwen output
  • tests/openclaw-converter.test.ts: Add converter test verifying MiniMax models get minimax/ prefix in OpenClaw output

How it works

MiniMax is a cloud LLM provider with models like MiniMax-M2.7 and MiniMax-M2.5-highspeed (204K context). Multi-provider target platforms (OpenCode, Qwen, OpenClaw) need provider-prefixed model IDs to route requests correctly. This change ensures:

Input Output
minimax-m2.7 minimax/minimax-m2.7
minimax-m2.5-highspeed minimax/minimax-m2.5-highspeed
MiniMax-M2.7 minimax/MiniMax-M2.7

Case-insensitive matching handles both minimax- and MiniMax- conventions used in the wild.

Test plan

  • bun test tests/model-utils.test.ts - unit tests for MiniMax prefix
  • bun test tests/qwen-converter.test.ts - Qwen converter integration
  • bun test tests/openclaw-converter.test.ts - OpenClaw converter integration
  • bun test - full suite (532 pass, 1 pre-existing failure in resolve-base-script.test.ts)

…malization

Add minimax- pattern recognition to addProviderPrefix() so MiniMax models
(e.g. minimax-m2.7, MiniMax-M2.5-highspeed) are correctly namespaced as
minimax/ when converting plugins for multi-provider platforms (OpenCode,
Qwen, OpenClaw). Uses case-insensitive matching to handle both minimax-
and MiniMax- conventions.
@tmchow tmchow merged commit e372b43 into EveryInc:main Mar 31, 2026
2 checks passed
@tmchow
Copy link
Copy Markdown
Collaborator

tmchow commented Mar 31, 2026

nice work @octo-patch, tx for contribution

@github-actions github-actions Bot mentioned this pull request Mar 31, 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.

2 participants