Add MiniMax as a built-in LLM provider - #196
Open
octo-patch wants to merge 1 commit into
Open
Conversation
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: Add MiniMax as a first-class built-in LLM provider.
This registers MiniMax as a native provider, wired through the same built-in
provider integration path already used by the other registered providers, so
MiniMax models can be selected and used out of the box.
Changes
src/pygpt_net/provider/llms/minimax.py, built on theshared LlamaIndex-compatible client and resolving
api_key_minimax/api_endpoint_minimax(defaulthttps://api.minimax.io/v1).src/pygpt_net/app.py).(
src/pygpt_net/core/types/openai.py) and in the chat client argumentdispatch (
src/pygpt_net/core/models/models.py).src/pygpt_net/controller/chat/common.py) andmodel-importer environment wiring
(
src/pygpt_net/controller/model/importer.py).api_endpoint_minimaxandapi_key_minimax(
src/pygpt_net/data/config/config.json), a dedicated "MiniMax" settings tabwith key and endpoint fields (
src/pygpt_net/data/config/settings.json), andEnglish labels (
src/pygpt_net/data/locale/locale.en.ini).src/pygpt_net/data/config/models.json:MiniMax-M3— 1,000,000 token context; text, image and video input.MiniMax-M2.7— 204,800 token context; text input.Missing config keys are added automatically on upgrade via the existing
post-upgrade config check.
Checks
python -m py_compileon all changed Python modules — passed.config.json,settings.json, andmodels.json— passed.locale.en.iniparses cleanly.The full test suite requires GUI and runtime dependencies that are unrelated to
this change and were not available in the build environment.