feat(ai): add MiniMax provider - #128
Open
octo-patch wants to merge 1 commit into
Open
Conversation
Register a first-class MiniMax adapter in the ai-client provider registry. MiniMax exposes an OpenAI-compatible chat completions API, so the adapter reuses the OpenAI SDK for blocking and streaming requests through a configurable base URL (default https://api.minimax.io/v1). - add the MINIMAX provider enum, MiniMax-M3 / MiniMax-M2.7 model list, and provider/model validation wiring across ai-client and the shared microservice contracts - wire MINIMAX_API_KEY and MINIMAX_API_BASE database/env configuration - cover the new provider config resolution with a unit test
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 server AI client had no MiniMax provider or MiniMax-M3 / MiniMax-M2.7 model validation, so MiniMax could not be selected as a first-class provider.
Summary
ai-clientprovider registryhttps://api.minimax.io/v1)MiniMax-M3andMiniMax-M2.7models and the new provider type across the AI client and the shared microservice contractsMINIMAX_API_KEY/MINIMAX_API_BASEenvironment variables (set the base URL to switch regional endpoints)Testing
corepack pnpm --filter @team9/shared buildcorepack pnpm --filter @team9/database buildcorepack pnpm --filter @team9/ai-client buildcorepack pnpm --filter @team9/database test config.service.spec.ts --runInBand(2 passed)eslinton the changed server filesprettier --checkon the changed TypeScript filesgit diff --checkNotes
apps/server/.env.exampleonly adds optional runtime configuration.