Open
Conversation
added 2 commits
March 29, 2026 00:34
Add @llm-tools/embedjs-minimax package providing MiniMax model support via OpenAI-compatible API. Includes MiniMax-M2.7 and M2.7-highspeed models with 204K context, temperature clamping to (0, 1.0], and automatic think-tag stripping from reasoning responses. - New package: models/embedjs-minimax with MiniMax class extending BaseModel - Uses @langchain/openai ChatOpenAI with MiniMax base URL - Supports MINIMAX_API_KEY env var or direct apiKey constructor param - Token usage reporting via usage_metadata - 14 tests (4 integration + 6 unit + 4 constructor) - Updated tsconfig.base.json with path alias
|
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
@llm-tools/embedjs-minimaxpackage providing MiniMax model support via OpenAI-compatible API.What's included
BaseModel, using@langchain/openaiChatOpenAIwith MiniMax base URLMiniMax-M2.7(default, 204K context) andMiniMax-M2.7-highspeed(204K context)(0.0, 1.0]<think>...</think>reasoning blocks from M2.7 responsesusage_metadataMINIMAX_API_KEYwhenapiKeynot passedUsage
Files changed
models/embedjs-minimax/src/minimax-model.tsmodels/embedjs-minimax/src/index.tsmodels/embedjs-minimax/package.jsonmodels/embedjs-minimax/project.jsonmodels/embedjs-minimax/tsconfig.jsonmodels/embedjs-minimax/eslint.config.jsmodels/embedjs-minimax/README.mdmodels/embedjs-minimax/tests/integration.test.mjstsconfig.base.jsonTest plan
node --test models/embedjs-minimax/tests/integration.test.mjs)npx nx build embedjs-minimaxcompiles successfully