Add Pi fallback for MiniMax-M3#10
Closed
Neonity2020 wants to merge 1 commit into
Closed
Conversation
- expose MiniMax-M3 when MiniMax China is available - keep SDK-provided models deduplicated - cover the fallback logic with tests
jwangkun
added a commit
that referenced
this pull request
Jun 19, 2026
Adds a local Pi model fallback for minimax-cn/MiniMax-M3 while the bundled Pi SDK model list is missing it. The fallback is included in Pi runtime model discovery only when MiniMax China is already available, and is deduplicated once the SDK adds it upstream. Co-authored-by: Neonity2020 <Neonity2020@users.noreply.github.com>
Collaborator
|
已合并 ✅ 通过 squash merge 合入了 感谢贡献 @Neonity2020 🙏 |
jwangkun
added a commit
that referenced
this pull request
Jun 22, 2026
The gateway merge (e743f72) and PR #10 landed without running the workspace checks, breaking CI fmt:check and typecheck. Formatting (15 files, oxfmt): long lines wrapped/merged, chain breaks, union types collapsed — pure style, no logic change. Typecheck fixes (4 errors across 4 files): - apps/web/_chat.settings.tsx: normalize ChannelSecretsRow.disabled (boolean | undefined) to boolean before passing to SecretSlotRow, which requires boolean under exactOptionalPropertyTypes. - apps/server/anthropicAdapter.ts: type raw as OpenAIChatResponse & Record<string, unknown> (intersection) so .error is reachable on the error branch. - apps/server/gateway.ts: give flatMap an explicit <ResponseContentPart> type param so the text/image_url union is inferred correctly. - apps/server/http.ts: narrow entry with typeof === 'string' before Array.isArray to satisfy readonly string[] handling. Verified: bun fmt:check, bun typecheck (8/8), bun lint (0 errors).
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.
Summary
minimax-cn/MiniMax-M3while the bundled Pi SDK model list is missing itTest
env PATH="/Users/andi/.nvm/versions/node/v22.19.0/bin:$PATH" bun run test src/provider/Layers/PiAdapter.test.tsNotes
bun fmt,bun lint, orbun typecheckper project instruction unless explicitly requested.