Repository navigation
feat(pi): add built-in MiniMax provider presets - #133
octo-patch wants to merge 3 commits into
Conversation
Register a built-in minimax provider for the Pi backend so minimax/MiniMax-M3 and minimax/MiniMax-M2.7 resolve by id, with global and CN endpoint presets selected via MINIMAX_REGION and thinking routed through the existing --thinking-level surface.
|
@octo-patch is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
🤖 auto-maintain reviewAutomated, advisory triage for
Review panel: 🔴 high highest severity deepsec maintainer code review: 🔴 high
General code review: 🟡 medium
Scanner and matcher quality: 🟡 medium
Sandbox and credential boundaries: 🟡 medium
Durability and distributed state: 🟢 low
Posted by auto-maintain. This automated code review is advisory; a human maintainer makes the call. |
Reason: The Pi backend had no built-in MiniMax provider or current MiniMax-M3.1-Flash/MiniMax-M3 presets. This update refreshes the existing provider PR to the authorized Flash-first rollout while preserving the generic provider and saved/custom route surfaces.
What changed
The Pi backend now registers
minimax/MiniMax-M3.1-Flashfirst andminimax/MiniMax-M3second, with explicit 1M-token contexts, current direct OpenAI-compatible pricing metadata, and adaptive reasoning metadata. It adds global and CN endpoint presets,MINIMAX_REGIONselection,MINIMAX_BASE_URLand--ai-base-urlprecedence, and runtimeMINIMAX_API_KEYwiring.Flash maps Pi
xhighto MiniMaxmax; M3 keeps its adaptive OpenAI default and does not advertise effort mapping. The Pi type surface supports text/image labels; MiniMax video capability remains outside this ordinary text-agent integration. Existing non-MiniMax providers, gateway routes, saved/custom/legacy routes, and media integrations are untouched.Why
Deepsec could not resolve a first-class
minimax/...model route offline or select the current Flash-first model by default. Registering a static provider catalog keeps Pi model discovery credential-free and avoids remote catalog fetches while retaining the existing custom provider controls.Verification
git diff --checkpassed for all four owned provider files.pnpm install --offline --ignore-scripts --frozen-lockfilewas attempted under the light-install lock and stopped because@biomejs/biome@2.4.13is absent from the local pnpm store. The added Vitest cases therefore were not executed locally; no network install, paid inference, or model request was performed.Notes for reviewer
The existing open PR #133 was updated on its original fork head branch after merging current
main. The rollout commits are528052d154d0aa5ad15ea2b74d83532fe6c4611cand363e94591949ec7e785241a079bde12036eaa8f6; the latter also isolates generic custom-provider overrides from the MiniMax preset.