feat: add MiniMax as first-class LLM provider#140
Open
octo-patch wants to merge 1 commit intonicepkg:masterfrom
Open
feat: add MiniMax as first-class LLM provider#140octo-patch wants to merge 1 commit intonicepkg:masterfrom
octo-patch wants to merge 1 commit intonicepkg:masterfrom
Conversation
Add MiniMax AI as a dedicated model provider with: - MiniMaxModelProvider extending BaseModelProvider via ChatOpenAI - Temperature clamping to (0.0, 1.0] as required by MiniMax API - Clearing unsupported OpenAI-specific parameters - Default base URL fallback to https://api.minimax.io/v1 - minimax@ URL prefix support in parseModelBaseUrl - Documentation pages for both EN and ZH - Sidebar navigation entries in VitePress config - 30 unit tests covering URL parsing, temperature clamping, provider mapping, model validation, and configuration format Supported models: MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, MiniMax-M2.5-highspeed Usage: Set aide.openaiBaseUrl to "minimax@https://api.minimax.io/v1"
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.
Summary
Add MiniMax AI as a dedicated model provider for the Aide VSCode extension, alongside the existing OpenAI, Anthropic, and Azure OpenAI providers.
Changes
MiniMaxModelProviderextendingBaseModelProviderviaChatOpenAIfrom@langchain/openai(0.0, 1.0]as required by MiniMax APIfrequencyPenalty,n,presencePenalty,topP)https://api.minimax.io/v1minimaxtoModelUrlTypeunion and URL parsing regex inparse-model-base-url.tsMiniMaxModelProviderto the provider map inhelpers.tsSupported Models
MiniMax-M2.7MiniMax-M2.7-highspeedMiniMax-M2.5MiniMax-M2.5-highspeedUsage
Configure in VSCode settings:
{ "aide.openaiBaseUrl": "minimax@https://api.minimax.io/v1", "aide.openaiKey": "your-minimax-api-key", "aide.openaiModel": "MiniMax-M2.7" }The
minimax@prefix ensures the extension handles MiniMax-specific configurations (temperature constraints, parameter compatibility) correctly.Files Changed (10 files, 413 additions)
src/extension/ai/model-providers/minimax.tssrc/extension/ai/parse-model-base-url.tsminimaxto URL type union and regexsrc/extension/ai/helpers.tswebsite/en/guide/use-another-llm/minimax.mdwebsite/zh/guide/use-another-llm/minimax.mdwebsite/.vitepress/config/en.tswebsite/.vitepress/config/zh.tstest/minimax.test.tsTest Plan
npx vitest run)