Skip to content

Switch MiniMax default to M3#66

Merged
SamuelZ12 merged 2 commits into
mainfrom
pr/65
Jun 4, 2026
Merged

Switch MiniMax default to M3#66
SamuelZ12 merged 2 commits into
mainfrom
pr/65

Conversation

@SamuelZ12

@SamuelZ12 SamuelZ12 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Update MiniMax provider defaults from MiniMax-M2.7 to MiniMax-M3.
  • Refresh MiniMax default assertions, environment examples, and setup docs.
  • Add the MiniMax M3 default design note.

Official MiniMax Docs Check

  • MiniMax Model Invocation docs list MiniMax-M3 as a supported model with a 1,000,000-token context window and show the OpenAI-compatible base URL as https://api.minimax.io/v1.
  • MiniMax OpenAI-compatible Chat Completions docs list MiniMax-M3 as a valid model value and use https://api.minimax.io/v1/chat/completions.
  • MiniMax OpenAI SDK docs show model="MiniMax-M3" and document reasoning_split as a supported M3 request parameter.
  • MiniMax docs recommend max_completion_tokens for new integrations, but still document max_tokens as a legacy generation-length parameter. This PR intentionally preserves the existing request payload shape and only changes the default model.

References:

Test Plan

  • node --import tsx --test lib/__tests__/minimax-adapter.test.ts lib/__tests__/provider-config.test.ts lib/__tests__/validation.test.ts
  • npm run lint (0 errors, 5 existing warnings)

Copilot AI review requested due to automatic review settings June 4, 2026 15:28
@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tldw Ready Ready Preview, Comment Jun 4, 2026 3:29pm

Request Review

@SamuelZ12 SamuelZ12 temporarily deployed to pr/65 - longcut PR #66 June 4, 2026 15:28 — with Render Destroyed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the project’s MiniMax defaults and supporting documentation/tests to use MiniMax-M3 instead of MiniMax-M2.7, aligning the configured default model strings and examples across the codebase.

Changes:

  • Switch MiniMax default model strings from MiniMax-M2.7 to MiniMax-M3 in provider config and the MiniMax adapter.
  • Update tests that assert MiniMax default model behavior.
  • Refresh environment examples/docs and add a design note describing the default switch.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.md Updates .env.local guidance and recommended setup to reference MiniMax-M3.
lib/ai-providers/provider-config.ts Updates MiniMax provider default model to MiniMax-M3.
lib/ai-providers/minimax-adapter.ts Updates the MiniMax adapter’s DEFAULT_MODEL to MiniMax-M3.
lib/tests/validation.test.ts Updates validation default-model assertion to MiniMax-M3.
lib/tests/provider-config.test.ts Updates provider-config default-model assertions to MiniMax-M3.
lib/tests/minimax-adapter.test.ts Updates mocked MiniMax responses/expectations to MiniMax-M3.
docs/superpowers/specs/2026-06-04-minimax-m3-default-design.md Adds a design note documenting the default change to M3.
CLAUDE.md Updates environment variable docs to reference MiniMax-M3.
.env.local.example Updates example default model and client hint to MiniMax-M3.
.env.example Updates example default model and client hint to MiniMax-M3.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
| `AI_PROVIDER` | recommended | `minimax`, `grok`, or `gemini`; determines which server-side text provider adapter is used |
| `NEXT_PUBLIC_AI_PROVIDER` | recommended | Set this to match `AI_PROVIDER` for consistent client/server provider behavior in Phase 1 |
| `AI_DEFAULT_MODEL` | recommended | Override provider default model (for Phase 1, `MiniMax-M2.7`) |
| `AI_DEFAULT_MODEL` | recommended | Override provider default model (currently `MiniMax-M3`) |
Comment thread README.md
<sup>\**</sup> `GEMINI_API_KEY` is still required if image generation should work, because `app/api/generate-image/route.ts` remains Gemini-backed.

> Recommended Phase 1 setup: `AI_PROVIDER=minimax`, `NEXT_PUBLIC_AI_PROVIDER=minimax`, `AI_DEFAULT_MODEL=MiniMax-M2.7`, `MINIMAX_API_KEY=...`. Keep `GEMINI_API_KEY` set if you want image generation, and optionally keep `XAI_API_KEY` available for Grok fallback/testing.
> Recommended setup: `AI_PROVIDER=minimax`, `NEXT_PUBLIC_AI_PROVIDER=minimax`, `AI_DEFAULT_MODEL=MiniMax-M3`, `MINIMAX_API_KEY=...`. Keep `GEMINI_API_KEY` set if you want image generation, and optionally keep `XAI_API_KEY` available for Grok fallback/testing.
Comment thread CLAUDE.md
- `AI_PROVIDER`: Server-side text provider selection (`minimax`, `grok`, or `gemini`)
- `NEXT_PUBLIC_AI_PROVIDER`: Set this to match `AI_PROVIDER` for consistent client/server provider behavior in Phase 1
- `AI_DEFAULT_MODEL`: Optional text model override (Phase 1 default: `MiniMax-M2.7`)
- `AI_DEFAULT_MODEL`: Optional text model override (current default: `MiniMax-M3`)

## Context

LongCut currently defaults MiniMax text generation to `MiniMax-M2.7`. MiniMax has released `MiniMax-M3`, and the project should use M3 by default while preserving existing environment-variable overrides for rollback or experimentation.
@SamuelZ12 SamuelZ12 merged commit c80c874 into main Jun 4, 2026
3 checks passed
@SamuelZ12 SamuelZ12 deleted the pr/65 branch June 4, 2026 15:34
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