feat(minimax): add China / Token Plan provider routes for minimaxi.com#4686
Open
ffaacceelee wants to merge 1 commit into
Open
feat(minimax): add China / Token Plan provider routes for minimaxi.com#4686ffaacceelee wants to merge 1 commit into
ffaacceelee wants to merge 1 commit into
Conversation
Add four new provider identifiers that target api.minimaxi.com (the Chinese / Token Plan sibling of api.minimax.io): - minimax-cn (OpenAI Chat Completions on api.minimaxi.com/v1) - minimax-anthropic-cn (Anthropic Messages on api.minimaxi.com/anthropic) The Anthropic-compatible variant is what Token Plan subscribers use, since config.example.toml already mentions api.minimaxi.com/anthropic in passing but no provider route actually pointed there. Both providers share the same [providers.minimax] runtime config when keys land in the defaults (parallel to how SiliconflowCN reuses Siliconflow's fields), so no new env-vars are introduced; MINIMAX_API_KEY continues to cover pay-as-you-go and Token Plan keys. Note: this is a partial plumbing change. Additional non-exhaustive match arms in crates/tui/src/config.rs and elsewhere may still need CN variants added to make cargo check green; follow-up patch welcome.
Contributor
|
Thanks @ffaacceelee for taking the time to contribute. This repository is observing a maintainer-managed PR intake gate in dry-run mode, so this pull request is staying open. This note helps maintainers prepare the allowlist before any enforcement is considered. Please read |
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.
Add four new provider identifiers that target api.minimaxi.com (the Chinese / Token Plan sibling of api.minimax.io):
The Anthropic-compatible variant is what Token Plan subscribers use, since config.example.toml already mentions api.minimaxi.com/anthropic in passing but no provider route actually pointed there.
Both providers share the same [providers.minimax] runtime config when keys land in the defaults (parallel to how SiliconflowCN reuses Siliconflow's fields), so no new env-vars are introduced; MINIMAX_API_KEY continues to cover pay-as-you-go and Token Plan keys.
Note: this is a partial plumbing change. Additional non-exhaustive match arms in crates/tui/src/config.rs and elsewhere may still need CN variants added to make cargo check green; follow-up patch welcome.
Summary
Testing
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-featurescargo test --workspace --all-featuresChecklist