feat: refresh MiniMax defaults (M3) and add global/China endpoint selection - #1171
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: Refresh the MiniMax provider defaults to MiniMax-M3 and add explicit global/China endpoint selection.
Changes
pdf2zh/translator.py: bump the defaultMINIMAX_MODELtoMiniMax-M3and add a configurableMINIMAX_BASE_URLenv (default: global endpointhttps://api.minimax.io/v1), following the repository's existing configurable base-URL convention so the China endpointhttps://api.minimaxi.com/v1can be selected without code changes.docs/ADVANCED.md,docs/README_ja-JP.md,docs/README_ko-KR.md,docs/README_zh-TW.md: update the provider table to document the newMiniMax-M3default, the still-selectableMiniMax-M2.7model, and both the global and China endpoints.test/test_translator.py: addTestMiniMaxTranslatorcovering the default model and global endpoint, explicitMiniMax-M2.7selection, and China endpoint selection.Why
The default was still
MiniMax-M2.7and the base URL was hardcoded to the global endpoint only. This refreshes the default to the current flagshipMiniMax-M3, exposes both regional endpoints through a single env var, and documents both model routes so users can pick the model and region that fit their account.Testing
python -m pytest test/test_translator.py— 12 passedpython -m flake8 pdf2zh/translator.py test/test_translator.py— clean