feat(chat): add MiniMax models to the model picker

Closed
OC
3mo ago
+161-1

Reason: add target provider/model to existing provider registry

Summary

  • Add MiniMax-M3 and MiniMax-M2.7 to the global and China Superset chat catalogs.
  • Forward the MiniMax API key through the cloud host runtime and keep both regional provider labels on the MiniMax logo slug.
  • Document both API regions and the Anthropic-compatible and OpenAI-compatible endpoints.

Test plan

  • bunx @biomejs/biome@2.4.2 check packages/shared/src/agent-models.ts packages/shared/src/agent-models.test.ts apps/desktop/src/renderer/lib/dev-chat.ts packages/host-service/src/providers/model-providers/CloudModelProvider/CloudModelProvider.ts packages/host-service/src/providers/model-providers/CloudModelProvider/CloudModelProvider.test.ts
  • bun test packages/shared/src/agent-models.test.ts packages/host-service/src/providers/model-providers/CloudModelProvider/CloudModelProvider.test.ts apps/desktop/src/renderer/lib/dev-chat.test.ts
  • Captured the generated request URLs with mocked fetch for both protocols in both API regions.

Open in Stage