feat: add MiniMax as LLM provider#1571
Open
octo-patch wants to merge 1 commit intoPortkey-AI:mainfrom
Open
Conversation
Add MiniMax as a first-class LLM provider to the Portkey AI Gateway, supporting MiniMax-M2.7 and MiniMax-M2.7-highspeed models via their OpenAI-compatible API at https://api.minimax.io/v1. - Add provider files (api.ts, chatComplete.ts, index.ts) with streaming support and response transforms - Register provider in globals, provider index, providers.json, and models.json - Use open-ai-base for chat completion params with temperature default of 1.0 - Exclude unsupported params: logit_bias, logprobs, top_logprobs - Add 22 unit tests covering config, transforms, and streaming - Add 3 integration tests with real API validation - Add test variables entry for MINIMAX_API_KEY
narengogi
approved these changes
Mar 24, 2026
Member
|
@octo-patch please sign your commits |
Author
|
Hi @narengogi, thanks for the note! I'll rebase and sign the commits. Will push an update shortly. |
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 as a first-class LLM provider to the Portkey AI Gateway, enabling seamless routing to MiniMax's advanced language models via their OpenAI-compatible API.
What's included
api.ts,chatComplete.ts,index.tsfollowing the established provider pattern with streaming support and response transformsproviders.json, andmodels.jsonImplementation details
open-ai-basehelper for OpenAI-compatible chat completion paramshttps://api.minimax.io/v1withBearerauthlogit_bias,logprobs,top_logprobsProvider info
MINIMAX_API_KEYTest plan
rollup -c)