feat: add MiniMax as LLM provider#1571
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
|
@octo-patch please sign your commits |
|
Hi @narengogi, thanks for the note! I'll rebase and sign the commits. Will push an update shortly. |
|
Just a friendly bump — this PR is already approved by @narengogi and would unblock a lot of users. MiniMax M2.7 is consistently in OpenRouter's top-10 most-used models on the monthly leaderboard, and right now Portkey users have to use the Custom OpenAI workaround to reach it. @octo-patch are you still planning to rebase + sign? Happy to take it over (rebase your branch, sign the commits, force-push to a new branch and reopen the PR with you as co-author) if that helps move it forward. Also happy to provide a Token Plan API key for additional verification if useful. |
|
Reopened as #1650 with the rebase + DCO sign-off applied. Same code, original author preserved via |
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)