feat: add MiniMax provider preset with MiniMax-M3 and MiniMax-M2.7 models - #191
Open
octo-patch wants to merge 2 commits into
Open
feat: add MiniMax provider preset with MiniMax-M3 and MiniMax-M2.7 models#191octo-patch wants to merge 2 commits into
octo-patch wants to merge 2 commits into
Conversation
Author
|
Updated the MiniMax provider to expose the global and China OpenAI-compatible and Anthropic-compatible endpoints, route each format through the matching transport, and record the current input and thinking metadata. I ran the extension typecheck and lint, the webview TypeScript build, and targeted provider assertions. |
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: Add a first-class MiniMax provider preset on the existing OpenAI-compatible transport.
Adds the MiniMax provider to the provider registry so it is selectable in the provider manager and model picker, alongside its two current text models.
Changes:
minimaxprovider id, display name, and default base URL inextension/src/api/providers/constants.ts(global endpointhttps://api.minimax.io/v1).extension/src/api/providers/config/minimax.tswith model metadata forMiniMax-M3(1,000,000 context window, text/image/video input, adaptive thinking, prompt cache) andMiniMax-M2.7(204,800 context window, text input, always-on thinking, prompt cache), including per-million-token pricing and cache read/write prices.providerConfigsinextension/src/api/providers/config/index.tsso its models appear inlistModels/currentModelInfo.minimaxprovider through the OpenAI-compatible SDK transport inextension/src/api/providers/custom-provider.ts, using the global base URL by default and allowing an optional CN base URL override.MiniMaxSettingstype (providerId,apiKey, optionalbaseUrl) to theProviderSettingsunion inextension/src/api/providers/types.ts.extension/webview-ui-vite/src/components/settings-view/preferences/provider-manager.tsx.Checks:
tsc --noEmit(extension) — passes.eslint src(extension) — passes.tsc -b --force(webview-ui-vite) — passes.