feat(llm_api): add MiniMax provider to synced LLM helper - #67
Open
octo-patch wants to merge 2 commits into
Open
Conversation
Add a MiniMax provider to the llm_api tool starter (and the identical synced copies) using the OpenAI-compatible endpoint https://api.minimax.io/v1 with MiniMax-M3 as the default text model, plus MINIMAX_API_KEY to .env.example.
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.
Reason: provider-add — add a MiniMax provider to the synced LLM helper for the MiniMax-M3 / MiniMax-M2.7 models and their OpenAI-compatible endpoint.
Changes
Add a
minimaxprovider to the sharedllm_api.pytool starter and to the identical synced copies shipped with the built-in packs and the VS Code extension. The new provider follows the existing pattern used by the OpenAI-compatible providers (e.g. deepseek, siliconflow):create_llm_client("minimax")builds anOpenAIclient pointed at the MiniMax global OpenAI-compatible endpoint (https://api.minimax.io/v1) using theMINIMAX_API_KEYenvironment variable.query_llmdefaults the text model toMiniMax-M3and routesminimaxthrough the existing OpenAI-style chat completions path (which already supports text and image inputs).--providerchoices now includeminimax, withMiniMax-M3as the default model..env.exampledocuments the newMINIMAX_API_KEYvariable.Files updated (all kept byte-identical, as in the existing repo layout):
tools/llm_api.pyrule_sets/tool_starters/llm_api.pysrc/rulebook_ai/packs/light-spec/tool_starters/llm_api.pysrc/rulebook_ai/packs/medium-spec/tool_starters/llm_api.pysrc/rulebook_ai/packs/heavy-spec/tool_starters/llm_api.pyvscode-extension/manage_rules/python/tool_starters/llm_api.pyvscode-extension/manage_rules/python/rule_sets/tool_starters/llm_api.py.env.exampleChecks
python3 -m py_compileon all sevenllm_api.pycopies — passed.llm_api.pyand exercisingcreate_llm_client("minimax"): missing key raisesValueError; with a key it returns anOpenAIclient withbase_url=https://api.minimax.io/v1— passed.