feat: add MiniMax provider support#2207
Open
octo-patch wants to merge 1 commit intoopenops-cloud:mainfrom
Open
feat: add MiniMax provider support#2207octo-patch wants to merge 1 commit intoopenops-cloud:mainfrom
octo-patch wants to merge 1 commit intoopenops-cloud:mainfrom
Conversation
- Add MiniMax chat model provider using OpenAI-compatible API - Add MINIMAX enum to AiProviderEnum - Register minimax provider in PROVIDER_MAP - Add MiniMax-M2.7 and MiniMax-M2.7-highspeed model support - Add unit tests for the new provider
|
Contributor
|
Thanks for the contribution, @octo-patch ! I can see this issue when testing it in the main chat, you can try a prompt like: Looks related to generating JSON output from our query router. Could you please check? |
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
MiniMax-M2.7andMiniMax-M2.7-highspeedmodels to the provider's model listAiProviderEnumandPROVIDER_MAPImplementation Details
MiniMax exposes an OpenAI-compatible chat API at
https://api.minimax.io/v1. This PR implements a dedicated MiniMax provider using@ai-sdk/openai-compatible(already a project dependency), following the same pattern as other providers in this codebase.Users can configure MiniMax by setting:
MiniMaxMINIMAX_API_KEYMiniMax-M2.7(flagship) orMiniMax-M2.7-highspeed(faster variant)API Reference
Test plan
packages/openops/test/ai/providers.test.ts)api.minimax.ioreturns valid responseAiProviderEnumandPROVIDER_MAPMiniMax-M2.7andMiniMax-M2.7-highspeed