Add MiniMax provider preset with global/CN endpoints - #17
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 configurable LLM provider with global and CN regional endpoints.
Changes:
configs/oai_config.py: register aminimaxprovider preset inget_api_config()(modelMiniMax-M3, keyMINIMAX_API_KEY, base URL defaulting to the global endpointhttps://api.minimax.io/v1) and addminimaxtoDEFAULT_PROVIDER_PRIORITYso it participates in provider-priority fallback. The CN endpoint (https://api.minimaxi.com/v1) is documented inline and selectable viaMINIMAX_BASE_URL.configs/mode_config.py: addminimaxto the--api-typeCLI choices and to theBackendConfig.api_typedocstring.configs/env.example: addMINIMAX_API_KEY/MINIMAX_MODEL/MINIMAX_BASE_URLentries (defaulting to the global endpoint) and update theDEFAULT_API_PROVIDERcomment to listminimax.USAGE.md: document the MiniMax configuration block (global/CN endpoints) and theminimaxdefault-provider option.Checks performed:
python3 -m py_compile configs/oai_config.py configs/mode_config.py(syntax OK).minimaxis present inDEFAULT_PROVIDER_PRIORITYandget_api_config(), andget_llm_config(api_type='minimax')resolves modelMiniMax-M3with base URLhttps://api.minimax.io/v1.MINIMAX_API_KEYset):validate_and_get_fallback_config()resolves tominimax.create_argument_parser()exposesminimaxin the--api-typechoices.