feat: add MiniMax as a first-class AI provider#60
Closed
octo-patch wants to merge 17 commits intoTraderAlice:devfrom
Closed
feat: add MiniMax as a first-class AI provider#60octo-patch wants to merge 17 commits intoTraderAlice:devfrom
octo-patch wants to merge 17 commits intoTraderAlice:devfrom
Conversation
fix: CCXT contract resolution + provider resilience
v0.9: Unified trading, OpenTypeBB, Agent SDK, SSE streaming
v0.9.0-beta.1: versioning, testing, and stability
v0.9.0-beta.2: package publishing, bug fixes, refactoring
v0.9.0-beta.3: opentypebb bug fix, npmjs publish fix
fix(ci): npmjs publish auth
ci: workflow_dispatch + independent registry checks
Release v0.9.0-beta.4
fix(ci): unify ui into pnpm workspace
fix(ci): remove pnpm cache from release publish job
v0.9.0-beta.5: cherry-pick fixes & docs from Claude branches
fix(build): fix opentypebb exports for production + add start script
fix: Vercel AI SDK parallel tool results + Anthropic base URL hint
fix: restore preview image in README
refactor: AI provider architecture cleanup + bug fixes
feat: add @traderalice/ibkr TWS API package + refactors
1052347 to
22e116b
Compare
Add MiniMax (https://www.minimax.io) support via the Vercel AI SDK's OpenAI-compatible adapter. MiniMax offers MiniMax-M2.5 (204K context) and MiniMax-M2.5-highspeed models through an OpenAI-compatible API. Changes: - model-factory.ts: add minimax provider case using @ai-sdk/openai with compatibility mode and chat completions endpoint - config.ts: add minimax to apiKeys Zod schema - config.ts (web routes): expose minimax API key status - types.ts (UI): add minimax to ApiKeys type - AIProviderPage.tsx: add MiniMax to provider list with model presets - README.md: mention MiniMax in AI Provider and api-keys docs Tested with both MiniMax-M2.5 and MiniMax-M2.5-highspeed models. All 766 existing tests continue to pass.
22e116b to
8ad0645
Compare
Contributor
|
Closing as duplicate of #61. |
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
Add MiniMax as a built-in provider option for the Vercel AI SDK backend, alongside Anthropic, OpenAI, and Google.
MiniMax offers an OpenAI-compatible API, so this leverages the existing
@ai-sdk/openaipackage with a custom base URL (https://api.minimax.io/v1) — no new dependencies required.Changes
model-factory.ts): addminimaxcase usingcreateOpenAIwith MiniMax's default endpointconfig.ts): addminimaxto theapiKeysZod objectAIProviderPage.tsx): add MiniMax to the provider selector with MiniMax-M2.5 model presetsChannelConfigModal.tsx): add MiniMax to per-channel provider dropdownconfig.ts): includeminimaxin the API key status endpointtypes.ts): addminimaxtoAIProviderConfig.apiKeysConfiguration Example
Available Models
Test Plan
pnpm build:backend)pnpm build:ui)