Refresh MiniMax providers to the OpenAI-compatible endpoints - #100
Merged
MagicCube merged 1 commit intoJul 31, 2026
Merged
Conversation
Move the global and CN MiniMax providers out of the locked @earendil-works/pi-ai catalog into local factories so the current parameters can be applied. Both regions now target their OpenAI-compatible chat endpoints (https://api.minimax.io/v1 and https://api.minimaxi.com/v1) over the OpenAI Completions API. MiniMax-M3 is refreshed to /bin/bash.6/.4//bin/bash.12 input/output/cache-read pricing, a 1M-token context window, text/image/video input, and adaptive/disabled thinking. MiniMax-M2.7 stays an always-on reasoning text model at /bin/bash.3/.2//bin/bash.06.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason: Refresh the MiniMax global and CN providers to the OpenAI-compatible endpoints with current pricing, context window, modalities, and thinking.
The global and CN MiniMax providers were imported unchanged from the locked
@earendil-works/pi-aicatalog, which exposes only Anthropic-compatible regional endpoints and defines MiniMax-M3 with stale pricing, a generic reasoning flag, and text/image input only. This change moves both providers into local factories so the current parameters can be applied while keeping them in the builtin provider registry.Changes:
minimaxandminimax-cnprovider factories targeting the OpenAI-compatible chat endpoints (https://api.minimax.io/v1andhttps://api.minimaxi.com/v1) over the OpenAI Completions API, replacing the catalog imports inbuiltin-providers.ts.minimax.modelscatalog:MiniMax-M3:$0.6/$2.4/$0.12input / output / cache-read pricing,1,000,000context window, text/image/video input, and adaptive/disabled thinking.MiniMax-M2.7: stays an always-on reasoning text model at$0.3/$1.2/$0.06.Checks run:
tsc --noEmit -p packages/runtime/tsconfig.jsonbun test packages/runtime/tests/models/providers/minimax/eslint --max-warnings 0on the changed files