feat: add MiniMax model support via OpenAI-compatible API#416
feat: add MiniMax model support via OpenAI-compatible API#416JithendraNara wants to merge 2 commits intogoogle:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
No linked issues found. Please link an issue in your pull request description or title. Per our Contributing Guidelines, all PRs must:
You can also use cross-repo references like |
- Add MiniMax patterns (MiniMax-M2.5, etc.) to OpenAI provider
- Users can now use MiniMax with LangExtract by specifying:
- model_id: 'MiniMax-M2.5' (or other MiniMax models)
- provider_kwargs: { api_key, base_url: 'https://api.minimax.io/v1' }
Example:
config = ModelConfig(
model_id='MiniMax-M2.5',
provider_kwargs={'api_key': '...', 'base_url': 'https://api.minimax.io/v1'}
)
model = create_model(config)
7bfb52a to
a0b54d3
Compare
|
Your branch is 1 commits behind git fetch origin main
git merge origin/main
git pushNote: Enable "Allow edits by maintainers" to allow automatic updates. |
|
Your branch is 6 commits behind git fetch origin main
git merge origin/main
git pushNote: Enable "Allow edits by maintainers" to allow automatic updates. |
Summary
Add support for MiniMax models in LangExtract via the OpenAI-compatible API. Closes #417
Changes
Usage
Testing
Tested successfully with MiniMax-M2.5 model via OpenAI-compatible API.