Skip to content

Add Pi fallback for MiniMax-M3#10

Closed
Neonity2020 wants to merge 1 commit into
PeakCode-AI:mainfrom
Neonity2020:feature/pi-minimax-m3-fallback
Closed

Add Pi fallback for MiniMax-M3#10
Neonity2020 wants to merge 1 commit into
PeakCode-AI:mainfrom
Neonity2020:feature/pi-minimax-m3-fallback

Conversation

@Neonity2020

Copy link
Copy Markdown
Contributor

Summary

  • Add a local Pi model fallback for minimax-cn/MiniMax-M3 while the bundled Pi SDK model list is missing it
  • Include the fallback in Pi runtime model discovery only when MiniMax China is already available
  • Allow direct model lookup for the fallback and avoid duplication once the SDK adds it upstream

Test

  • env PATH="/Users/andi/.nvm/versions/node/v22.19.0/bin:$PATH" bun run test src/provider/Layers/PiAdapter.test.ts

Notes

  • Did not run bun fmt, bun lint, or bun typecheck per project instruction unless explicitly requested.

- expose MiniMax-M3 when MiniMax China is available
- keep SDK-provided models deduplicated
- cover the fallback logic with tests
@github-actions github-actions Bot added size:M vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Jun 16, 2026
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>
@jwangkun

Copy link
Copy Markdown
Collaborator

已合并 ✅

通过 squash merge 合入了 main(commit 5a0b34b —— "Add Pi fallback for MiniMax-M3 (#10)"),所以 GitHub 没能自动关联关闭这个 PR。

感谢贡献 @Neonity2020 🙏

@jwangkun jwangkun closed this Jun 19, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants