feat(ai): add MiniMax as third LLM provider#111
Open
octo-patch wants to merge 1 commit intoIliasHad:mainfrom
Open
feat(ai): add MiniMax as third LLM provider#111octo-patch wants to merge 1 commit intoIliasHad:mainfrom
octo-patch wants to merge 1 commit intoIliasHad:mainfrom
Conversation
Add MiniMax AI as an alternative cloud LLM provider alongside Gemini and Ollama via OpenAI-compatible API using the existing OpenAI SDK. - New MiniMax provider implementing AIModel interface with think-tag stripping and JSON mode support - Model router updated with MiniMax selection via USE_MINIMAX env var - MINIMAX_API_KEY, USE_MINIMAX, MINIMAX_MODEL environment variables - Updated .env.example and README with MiniMax configuration - Fixed vitest config to resolve @shared from source for testing - 14 unit tests + 3 integration tests for MiniMax provider - Updated model router tests with MiniMax selection test case
Owner
|
@octo-patch Thank you for your contribution, much appreciated. Would you like to share your feedback on using Mini Max vs Gemini 2.5 Pro or 3.1 Pro? Why did you choose Mini Max specifically, and what feedback about contributing to this project (I wanna make sure that it's easy for other people to contribute)? PS: I'll review the code once it passes all the GitHub workflows |
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
Adds MiniMax as a third cloud LLM provider alongside Google Gemini and Ollama. MiniMax offers an OpenAI-compatible API, making integration clean via the existing
openaiSDK.packages/ai/src/services/minimax.ts— fullAIModelinterface implementation with think-tag stripping andresponse_format: json_objectfor structured outputsmodelRouter.tsnow selects MiniMax whenUSE_MINIMAX=trueandMINIMAX_API_KEYis setMINIMAX_API_KEY,USE_MINIMAX,MINIMAX_MODEL(defaults toMiniMax-M1).env.exampleandREADME.mdwith MiniMax configuration@sharedfrom source (was pointing to non-existentdist/), fixed model router test mock pathConfiguration
Test Plan