Repository navigation
feat: add MiniMax Flash text profiles for global and China endpoints - #275
Open
octo-patch wants to merge 1 commit into
Open
octo-patch wants to merge 1 commit into
octo-patch wants to merge 1 commit into
Conversation
This branch has not been deployed
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: the CLI can persist model profiles, but has no MiniMax preset and sends text requests and API-key validation to DashScope-specific paths. Add opt-in
minimaxandminimax-cnprofiles so a fresh MiniMax login can actually run text requests withMiniMax-M3.1-Flash./v1/models, and retain the selected profile regardless of Aliyun-style key prefixes./v1endpoints for those origins; keep existing transport, streaming and response handling.MiniMax-M3,MiniMax-M2.7and custom IDs. MiniMax presets claim onlytext.chatand do not materialize media defaults.thinking/reasoningfields and reject unsupported thinking budgets. Add English/Chinese command help and login examples.Validation: 53 focused tests passed (new MiniMax tests plus existing API-key and config-priority tests). Tests exercise actual Client HTTP serialization, bearer headers, both regions, both APIs, streaming/non-streaming, fresh defaults, saved/custom/legacy models, and unchanged non-MiniMax routing. Scoped formatting, lint and type checks passed for all nine changed files;
git diff --checkpassed.Validation limits: no dependency installation or paid inference was performed. The pinned Vite+ 0.3.3 was unavailable in the local cache; focused tests used cached Vitest 2.1.9 with a test-import alias, and scoped static checks used cached Vite+ 1.1.0 and Node types 24.8.1. Runtime dependencies were linked from existing caches. The full pinned build/e2e suite was not run. GitHub CI for commit
607c99e7b5a4e9760352ee268a8034e0c7c67a6fcurrently reportsaction_required, with no check runs yet.API references: OpenAI-compatible text, models endpoint, Responses, China Responses.