feat: add MiniMax as first-class LLM provider#275
Open
octo-patch wants to merge 1 commit intoFellouAI:mainfrom
Open
feat: add MiniMax as first-class LLM provider#275octo-patch wants to merge 1 commit intoFellouAI:mainfrom
octo-patch wants to merge 1 commit intoFellouAI:mainfrom
Conversation
Add MiniMax (https://www.minimaxi.com) as a dedicated LLM provider using the OpenAI-compatible API via @ai-sdk/openai-compatible. Users can now configure MiniMax models (MiniMax-M2.7, MiniMax-M2.5, MiniMax-M2.5-highspeed) with provider: "minimax" instead of using the generic openai-compatible provider. Changes: - Add "minimax" to LLMprovider type union - Add minimax provider branch in getLLM() with default base URL - Add MiniMax example in README quickstart - Add 8 unit tests + 3 integration tests
bfea0a6 to
866264d
Compare
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 dedicated LLM provider, allowing users to configure MiniMax models with
provider: "minimax"instead of using the genericopenai-compatibleprovider.Changes
packages/eko-core/src/types/llm.types.ts: Add"minimax"toLLMprovidertype unionpackages/eko-core/src/llm/rlm.ts: Addminimaxprovider branch ingetLLM()usingcreateOpenAICompatiblewith default base URLhttps://api.minimax.io/v1README.md: Add MiniMax example in quickstart code blockpackages/eko-core/test/llm/minimax.test.ts: Add 8 unit tests + 3 integration testsUsage
MiniMax API is OpenAI-compatible, so this integration uses the existing
@ai-sdk/openai-compatiblepackage with no new dependencies.Available Models
Test Plan