Add MiniMax as LLM provider with M2.7 and M2.5 models#60
Open
octo-patch wants to merge 1 commit intostanford-oval:mainfrom
Open
Add MiniMax as LLM provider with M2.7 and M2.5 models#60octo-patch wants to merge 1 commit intostanford-oval:mainfrom
octo-patch wants to merge 1 commit intostanford-oval:mainfrom
Conversation
Add MiniMax AI (https://platform.minimaxi.com/) as an LLM provider option, enabling WikiChat to use MiniMax's OpenAI-compatible API via LiteLLM. Changes: - llm_config.yaml: Add MiniMax endpoint with M2.7, M2.7-highspeed, M2.5, and M2.5-highspeed model mappings using openai/ prefix for LiteLLM routing - backend_server.py: Add minimax-m27 and minimax-m27-highspeed to the Chainlit web UI model selector dropdown - README.md: Mention MiniMax in supported providers list and API_KEYS example - tests/test_minimax.py: 18 unit tests (config validation, engine resolution, temperature handling, UI/README checks) + 3 integration tests (completion, streaming via LiteLLM)
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
llm_config.yamlusing LiteLLM'sopenai/prefix for routingDetails
MiniMax provides an OpenAI-compatible API at
https://api.minimax.io/v1, making integration seamless through WikiChat's existing ChainLite/LiteLLM stack. No code changes are needed beyond configuration — once theMINIMAX_API_KEYenvironment variable is set, all pipeline stages (query, generation, filtering, drafting, refining, reranking) automatically work with MiniMax models.Models added:
minimax-m27minimax-m27-highspeedminimax-m25minimax-m25-highspeedUsage:
Test plan
pytest tests/test_minimax.py -v