Add MiniMax provider to the cli-client example host - #2611
Open
octo-patch wants to merge 1 commit into
Open
Conversation
Add a minimax LLMProvider that reuses the existing OpenAI-compatible Chat Completions mapping, registered via MINIMAX_API_KEY / --provider minimax, with model resolution from the models API, README docs, and unit tests for model selection and the API-key requirement. Co-Authored-By: Claude <noreply@anthropic.com>
|
@modelcontextprotocol/client
@modelcontextprotocol/codemod
@modelcontextprotocol/core
@modelcontextprotocol/server
@modelcontextprotocol/server-legacy
@modelcontextprotocol/express
@modelcontextprotocol/fastify
@modelcontextprotocol/hono
@modelcontextprotocol/node
commit: |
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: Add a MiniMax LLM provider to the cli-client example host.
MiniMax is reachable through an OpenAI-compatible Chat Completions endpoint, so the new
minimaxprovider reuses the host's existing Chat Completions request/response mapping and only swaps the client wiring:providers/minimax.ts:MiniMaxProviderauthenticates withMINIMAX_API_KEYand targetsMINIMAX_BASE_URL(defaulthttps://api.minimax.io/v1); unless pinned with--model/MINIMAX_MODEL, it resolves the newest mainlineMiniMax-M<version>model from the models API.cli.ts: registersminimaxin the provider picker (auto-selected whenMINIMAX_API_KEYis set) and updates the usage, error, and status text.README.md: documents the provider and its example command in the provider table, commands, and flags sections.test/providers.test.ts: adds unit tests for model selection and the API-key requirement.providers/scripted.ts: includesminimaxin the run-with-a-real-provider hint.Checks run:
vitest run test/providers.test.ts(10 passed), targetedtsc --noEmitover the providers and test files,eslinton the changed files, andprettier --checkon the changed files.