Skip to content

Refresh MiniMax M3 model params#1374

Merged
omeraplak merged 1 commit into
VoltAgent:mainfrom
octo-patch:octo/20260707-params-refresh-recvoGIFHBaEki
Jul 8, 2026
Merged

Refresh MiniMax M3 model params#1374
omeraplak merged 1 commit into
VoltAgent:mainfrom
octo-patch:octo/20260707-params-refresh-recvoGIFHBaEki

Conversation

@octo-patch

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

Copy link
Copy Markdown
Contributor

Reason: MiniMax provider docs and generated registry stop at M2.x/M2.7; add M3 and refresh pricing/context/base URL.

Summary

  • Add MiniMax-M3 to the MiniMax model router type registry and provider tests.
  • Refresh MiniMax docs to use MiniMax-M3, the current docs entrypoint, and the current M3 pricing/context details.

Test plan

  • Secret scan: git add -A -N && git diff HEAD | grep -E "$SECRET_RE"
  • Attempted: pnpm --dir /root/octopatch-4/work/repos/VoltAgent_voltagent install --frozen-lockfile (failed because the default pnpm required Node 22.13 while the runner has Node 20.20.2)
  • Attempted: corepack prepare pnpm@8.10.5 --activate && pnpm --dir /root/octopatch-4/work/repos/VoltAgent_voltagent install --frozen-lockfile --registry=https://registry.npmjs.org --reporter=append-only (failed with ENOSPC during dependency linking)

Summary by cubic

Adds MiniMax-M3 to the MiniMax model registry for minimax and minimax-cn, updates tests, and makes M3 the default in docs. Refreshes provider doc links to the current API reference and updates pricing/context details.

Written for commit 8703987. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features

    • Added support and examples for the latest MiniMax model in both provider listings and quick start snippets.
    • Expanded model availability details to show the newer model alongside existing options.
  • Documentation

    • Updated provider links to point to the API reference.
    • Added pricing tables and refreshed model descriptions for MiniMax providers.
  • Tests

    • Extended coverage to confirm the newer MiniMax model resolves correctly.

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8703987

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds the "MiniMax-M3" model to the minimax and minimax-cn provider model lists, updates registry doc URLs from quickstart to API reference overview, extends a resolver test, and updates provider documentation with new pricing and models tables.

Changes

MiniMax-M3 Model Addition

Layer / File(s) Summary
Registry and type updates for MiniMax-M3
packages/core/src/registries/model-provider-types.generated.ts, packages/core/src/registries/model-provider-registry.generated.ts, packages/core/src/registries/model-provider-registry.ts, packages/core/src/registries/model-provider-registry-minimax.spec.ts
ProviderModelsMap for minimax and minimax-cn now include "MiniMax-M3"; doc URLs updated to api-reference/api-overview; spec test extended to resolve the new model.
MiniMax provider documentation updates
website/models-docs/providers/minimax.md, website/models-docs/providers/minimax-cn.md
Quick start examples switched to MiniMax-M3, provider doc links updated, and pricing/models tables revised to include MiniMax-M3 alongside MiniMax-M2.7.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • VoltAgent/voltagent#1167: Prior PR added MiniMax registry tests for resolving multiple MiniMax model variants, directly related to this PR's extension of that same test and model list.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: refreshing MiniMax M3 model parameters.
Description check ✅ Passed The description covers the reason, summary, and test plan, but it omits several template sections like linked issues, current/new behavior, and reviewer notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Re-trigger cubic

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/core/src/registries/model-provider-registry.generated.ts`:
- Around line 322-328: The generated MiniMax China provider metadata is out of
sync with the runtime registry. Update the `minimax-cn` entry in
`model-provider-registry.generated.ts` to match `model-provider-registry.ts`,
including the transport package and base URL used by the `minimax-cn` provider
definition. Keep the `id`, `name`, `env`, and other shared fields aligned, and
ensure the generated registry reflects the same `@ai-sdk/openai-compatible` and
`/v1` configuration as the runtime source.

In `@website/models-docs/providers/minimax-cn.md`:
- Around line 39-43: The MiniMax-M3 pricing table is incomplete and only
reflects one rate set, so update the pricing details in the MiniMax provider
docs to include the full split for the ≤512K and 512K~1M tiers. Use the existing
pricing section in the MiniMax docs and the MiniMax-M3 row to add the missing
tiered input/output/cache rates so long-context costs are represented
accurately.

In `@website/models-docs/providers/minimax.md`:
- Around line 41-45: The MiniMax-M3 pricing table is incomplete because it only
lists a single rate set and omits the separate ≤512K and 512K~1M tiers, so
update the pricing section in minimax.md to reflect the full M3 split shown on
the MiniMax pay-as-you-go page. Keep the existing MiniMax-M3 row structure, but
add the distinct tiered pricing entries with the correct input/output/cache
values so long-context usage is represented accurately.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7d71f729-2073-4a1a-addd-7fda9a4c49e8

📥 Commits

Reviewing files that changed from the base of the PR and between 9a241f0 and 8703987.

📒 Files selected for processing (6)
  • packages/core/src/registries/model-provider-registry-minimax.spec.ts
  • packages/core/src/registries/model-provider-registry.generated.ts
  • packages/core/src/registries/model-provider-registry.ts
  • packages/core/src/registries/model-provider-types.generated.ts
  • website/models-docs/providers/minimax-cn.md
  • website/models-docs/providers/minimax.md

Comment on lines 322 to +328
"minimax-cn": {
id: "minimax-cn",
name: "MiniMax (China)",
npm: "@ai-sdk/anthropic",
api: "https://api.minimaxi.com/anthropic/v1",
env: ["MINIMAX_API_KEY"],
doc: "https://platform.minimaxi.com/docs/guides/quickstart",
doc: "https://platform.minimaxi.com/docs/api-reference/api-overview",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Align the generated MiniMax China entry with the runtime registry.

model-provider-registry.generated.ts still routes minimax-cn through @ai-sdk/anthropic and /anthropic/v1, but model-provider-registry.ts now uses @ai-sdk/openai-compatible and /v1. That leaves the generated metadata and runtime registry out of sync, so consumers can resolve the same provider through different transports. Please regenerate or update this entry so both files agree.

Suggested alignment
-    npm: "`@ai-sdk/anthropic`",
-    api: "https://api.minimaxi.com/anthropic/v1",
+    npm: "`@ai-sdk/openai-compatible`",
+    api: "https://api.minimaxi.com/v1",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"minimax-cn": {
id: "minimax-cn",
name: "MiniMax (China)",
npm: "@ai-sdk/anthropic",
api: "https://api.minimaxi.com/anthropic/v1",
env: ["MINIMAX_API_KEY"],
doc: "https://platform.minimaxi.com/docs/guides/quickstart",
doc: "https://platform.minimaxi.com/docs/api-reference/api-overview",
"minimax-cn": {
id: "minimax-cn",
name: "MiniMax (China)",
npm: "`@ai-sdk/openai-compatible`",
api: "https://api.minimaxi.com/v1",
env: ["MINIMAX_API_KEY"],
doc: "https://platform.minimaxi.com/docs/api-reference/api-overview",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/core/src/registries/model-provider-registry.generated.ts` around
lines 322 - 328, The generated MiniMax China provider metadata is out of sync
with the runtime registry. Update the `minimax-cn` entry in
`model-provider-registry.generated.ts` to match `model-provider-registry.ts`,
including the transport package and base URL used by the `minimax-cn` provider
definition. Keep the `id`, `name`, `env`, and other shared fields aligned, and
ensure the generated registry reflects the same `@ai-sdk/openai-compatible` and
`/v1` configuration as the runtime source.

Comment on lines +39 to +43
## Pricing

| Model | Input | Output | Cache read | Cache write |
|---|---:|---:|---:|---:|
| MiniMax-M3 | $0.60 / 1M tokens | $2.40 / 1M tokens | $0.12 / 1M tokens | Not listed |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Document the full M3 pricing split.

The current MiniMax pay-as-you-go page lists separate ≤512K and 512K~1M M3 pricing tiers, but this table only shows one rate set, so long-context usage will be underquoted. (platform.minimax.io)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/models-docs/providers/minimax-cn.md` around lines 39 - 43, The
MiniMax-M3 pricing table is incomplete and only reflects one rate set, so update
the pricing details in the MiniMax provider docs to include the full split for
the ≤512K and 512K~1M tiers. Use the existing pricing section in the MiniMax
docs and the MiniMax-M3 row to add the missing tiered input/output/cache rates
so long-context costs are represented accurately.

Comment on lines +41 to +45
## Pricing

| Model | Input | Output | Cache read | Cache write |
|---|---:|---:|---:|---:|
| MiniMax-M3 | $0.60 / 1M tokens | $2.40 / 1M tokens | $0.12 / 1M tokens | Not listed |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Document the full M3 pricing split.

The current MiniMax pay-as-you-go page lists separate ≤512K and 512K~1M M3 pricing tiers, but this table only shows one rate set, so long-context usage will be underquoted. (platform.minimax.io)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/models-docs/providers/minimax.md` around lines 41 - 45, The
MiniMax-M3 pricing table is incomplete because it only lists a single rate set
and omits the separate ≤512K and 512K~1M tiers, so update the pricing section in
minimax.md to reflect the full M3 split shown on the MiniMax pay-as-you-go page.
Keep the existing MiniMax-M3 row structure, but add the distinct tiered pricing
entries with the correct input/output/cache values so long-context usage is
represented accurately.

@omeraplak omeraplak merged commit dc25ac6 into VoltAgent:main Jul 8, 2026
21 of 22 checks passed
@omeraplak

Copy link
Copy Markdown
Member

Thank you so much @octo-patch

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