Route MiniMax-M3 and MiniMax-M2.7 to the OpenAI provider - #488
Conversation
Route MiniMax-M3 through the existing OpenAI-compatible provider so users can configure MiniMax's OpenAI-compatible endpoint without custom provider selection. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
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 |
|
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 7 commits behind git fetch origin main
git merge origin/main
git pushNote: Enable "Allow edits by maintainers" to allow automatic updates. |
Description
Add exact model-ID routing for
MiniMax-M3andMiniMax-M2.7through the existing OpenAI-compatible provider. Both IDs now resolve toOpenAILanguageModel; the change does not add a new API client, protocol adapter, endpoint field, model metadata, or credential handling. Callers continue to provide their OpenAI-compatible base URL through the existing provider configuration.The code change is limited to:
langextract/providers/patterns.py: register the two exact model IDs.tests/registry_test.py: verify that both IDs resolve to the existing OpenAI provider.This repository requires a linked issue with community discussion and at least five unique thumbs-up reactions. No qualifying issue is currently available for this change, so that repository policy remains outstanding.
How Has This Been Tested?
python3 -m py_compile langextract/providers/patterns.pypython3 -m py_compile tests/registry_test.pyOPENAI_PATTERNSgit diff HEAD^ HEAD --checkformat-check,test (3.10),test (3.11),test (3.12),plugin-integration-test, andollama-integration-testThe targeted registry test could not start locally because the environment does not provide
abslorpytest. It passed in the hosted Python jobs with project dependencies installed.Checklist