Add MiniMax provider alias for pi and claude nodes - #36
Open
octo-patch wants to merge 2 commits into
Open
Conversation
Resolve the provider shorthand in resolve_provider: route claude nodes to the MiniMax Anthropic-compatible endpoint and pi nodes to the OpenAI-compatible chat-completions endpoint (materialized into a scoped models.json). Reject the alias on codex nodes because MiniMax exposes chat completions rather than the Responses API.
Author
|
Updated the MiniMax provider coverage with global and China aliases and scoped Pi declarations for MiniMax-M3 and MiniMax-M2.7. I ran |
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 the MiniMax provider preset for Pi and Claude nodes with global OpenAI- and Anthropic-compatible endpoints.
Changes
agentflow/specs.py: resolve theminimaxprovider alias inresolve_provider. Forclaudenodes it points at the MiniMax Anthropic-compatible endpoint (https://api.minimax.io/anthropic) withapi_key_env=MINIMAX_API_KEY; forpinodes it points at the OpenAI-compatible chat-completions endpoint (https://api.minimax.io/v1) with the same key env. The alias is rejected forcodexnodes because MiniMax exposes chat completions, not the Responses API Codex requires. The China region (https://api.minimaxi.com) or any custom base URL can still be supplied via a fullProviderConfig.docs/pipelines.md: document the newminimaxshorthand under built-in provider shorthands and note the per-agent endpoint routing, the codex rejection, and the custom-endpoint escape hatch.tests/test_agents.py: cover the Pi adapter materializing a scopedmodels.jsonforprovider: "minimax"(baseUrlhttps://api.minimax.io/v1,api: openai-completions, key envMINIMAX_API_KEY, model id stripped of theminimax/prefix) and the Claude adapter surfacingANTHROPIC_BASE_URL=https://api.minimax.io/anthropicplus the key for the same alias.tests/test_store_and_validation.py: cover pipeline validation rejectingprovider: "minimax"on codex nodes.Checks
python3 -m pytest tests/test_store_and_validation.py tests/test_agents.py tests/test_tuned_agents.py tests/test_inference.py -q-> 131 passed.python3 -m py_compile agentflow/specs.py tests/test_agents.py tests/test_store_and_validation.py-> OK.