Skip to content

feat(text): register MiniMax-M2.7 as a text model option - #210

Open
octo-patch wants to merge 1 commit into
MiniMax-AI:mainfrom
octo-patch:octo/20260728-provider-add-recvpTxVlCqUWS
Open

feat(text): register MiniMax-M2.7 as a text model option#210
octo-patch wants to merge 1 commit into
MiniMax-AI:mainfrom
octo-patch:octo/20260728-provider-add-recvpTxVlCqUWS

Conversation

@octo-patch

@octo-patch octo-patch commented Jul 28, 2026

Copy link
Copy Markdown

Reason: text SDK defaults to MiniMax-M3 but had no MiniMax-M2.7 model option or model registry entry.

Changes

  • Add a text model registry (src/commands/text/models.ts) listing the supported MiniMax text model IDs (MiniMax-M3 default, MiniMax-M2.7), mirroring the existing music model registry pattern (src/commands/music/models.ts).
  • text chat and text repl now resolve the effective model through the registry and validate an explicit --model value against it, surfacing MiniMax-M2.7 as a first-class option in --help and rejecting unknown model IDs with a clear usage error.
  • sdk.text resolves its default model from the same registry and validates an explicit model field the same way, keeping the CLI and SDK in lockstep.
  • Help text, SDK.md, and skill/SKILL.md list the supported text models.

Checks

  • typecheck: bun run typecheck (tsc --noEmit) — clean
  • lint: bun run lint — 0 errors
  • tests: bun test — 414 pass / 0 fail (added coverage for the registry, the chat invalid-model path, and the SDK invalid-model path)
  • build: bun run builddist/mmx.mjs + dist/sdk.mjs produced

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Add a text model registry (src/commands/text/models.ts) listing the
MiniMax-M3 (default) and MiniMax-M2.7 model IDs, mirroring the existing
music model registry pattern. The chat command, repl command, and text SDK
module now resolve the effective model and validate explicit --model values
against this registry, so MiniMax-M2.7 is surfaced as a first-class option
in help text, the SDK, and validation errors. Help text and SDK docs list
the supported models.
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