Add MiniMax as alternative LLM provider (default model: M3) - #20
Open
octo-patch wants to merge 2 commits into
Open
Add MiniMax as alternative LLM provider (default model: M3)#20octo-patch wants to merge 2 commits into
octo-patch wants to merge 2 commits into
Conversation
- Add utils/llm_provider.py: multi-provider factory for ChatOpenAI with OpenAI (default) and MiniMax support via LLM_PROVIDER env var - Add utils/minimax_embeddings.py: LangChain Embeddings wrapper for MiniMax embo-01 (1536 dims) with native API format - Add notebooks/[6]_rag_with_minimax.ipynb: complete RAG walkthrough using MiniMax M2.7 for chat and embo-01 for embeddings - Update .env.example with MiniMax configuration - Update README.md with multi-provider docs and comparison table - Add 44 unit tests and 6 integration tests Co-Authored-By: Octopus <liyuan851277048@icloud.com>
- Set MiniMax-M3 as the default chat model in PROVIDER_DEFAULTS - Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed as override options - Update README provider table to list M3/M2.7/M2.7-highspeed and 512K context - Update notebook [6]_rag_with_minimax.ipynb to use M3 in the RAG chain example - Update unit tests to assert M3 is the default
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
utils/llm_provider.py) supporting OpenAI (default) and MiniMax viaLLM_PROVIDERenv varMiniMax-M2.7andMiniMax-M2.7-highspeedavailable as overridesMiniMaxEmbeddingsclass for MiniMax embo-01 (1536 dims) native API integration[6]_rag_with_minimax.ipynbdemonstrating full RAG pipeline with MiniMax M3 + embo-01.env.examplewith MiniMax configuration optionsREADME.mdwith provider comparison table and quick-start guideKey Features
LLM_PROVIDER=minimaxin.envMiniMaxEmbeddingswraps the proprietary embo-01 API (usestexts/typefields, not OpenAI-compatible)get_chat_model()returns a standard LangChainChatOpenAIinstance that works with all existing chainsModels
MiniMax-M3(default)MiniMax-M2.7MiniMax-M2.7-highspeedTest Plan