feat: add MiniMax as LLM provider for evaluation and examples#159
Merged
ycjcl868 merged 1 commit intoagent-infra:mainfrom Apr 10, 2026
Merged
Conversation
Add OpenAIAgentLoop to the evaluation framework, supporting standard OpenAI and any OpenAI-compatible API (e.g. MiniMax) via configurable base_url. This complements the existing AzureOpenAIAgentLoop with temperature clamping for MiniMax and <think> tag stripping for M2.x models. - evaluation/agent_loop.py: new OpenAIAgentLoop class - evaluation/main.py: --agent/--openai-base-url/--openai-model CLI flags - examples/minimax-integration: standalone example with MiniMax - 19 unit tests + 4 integration tests - README/docs updated
Oanakiaja
approved these changes
Apr 10, 2026
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
Adds MiniMax as an LLM provider for the evaluation framework and a new integration example.
MiniMax offers OpenAI-compatible endpoints (
https://api.minimax.io/v1) with 204K-context models (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed), making it a drop-in alternative for any workflow that already uses theopenaiSDK.Changes
evaluation/agent_loop.pyOpenAIAgentLoop— works with standard OpenAI and any compatible API. Includes MiniMax-specific temperature clamping (> 0) and<think>tag stripping for M2.x models.evaluation/main.py--agent openai,--openai-base-url,--openai-modelCLI flags so evaluations can run against MiniMax (or any OpenAI-compat provider) without code changes.examples/minimax-integration/openai-integration).evaluation/tests/MINIMAX_API_KEYis not set).README.md,examples/README.md, andevaluation/README.mdwith MiniMax usage docs.Usage
Test plan
python -m pytest evaluation/tests/test_openai_agent_loop.py)AzureOpenAIAgentLoopbehaviour unchanged (verified by unit test)examples/minimax-integration/main.pyagainst a live sandbox13 files changed, 1019 additions(+), 12 deletions(-)