feat: add MiniMax provider configuration - #210
Open
octo-patch wants to merge 2 commits into
Open
Conversation
Add an optional ANTHROPIC_BASE_URL setting that configures the Claude Code SDK to use a proxy/enterprise endpoint or any Anthropic-compatible provider endpoint. ClaudeSDKManager exports the value to the ANTHROPIC_BASE_URL environment variable, preserving the existing SDK/session flow when the setting is left empty.
Author
|
Updated this PR with MiniMax provider selection, global and China endpoint resolution, and MiniMax-M3/MiniMax-M2.7 model configuration. I ran 31 configuration tests, 8 focused SDK tests, black, isort, flake8, and mypy. |
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: provider-add - configure MiniMax through the existing Claude Agent SDK extension point while preserving the current SDK/session flow.
Changes
CLAUDE_PROVIDER=minimaxandMINIMAX_REGIONsettings.https://api.minimax.io/anthropicand Chinahttps://api.minimaxi.com/anthropicendpoints automatically.MiniMax-M3and allowMiniMax-M2.7throughCLAUDE_MODEL.ANTHROPIC_BASE_URLas an explicit override and leave the SDK client/session flow unchanged.Verification
pytest tests/unit/test_config.py- 31 passed.black --check,isort --check-only,flake8, andmypy src/config/settings.py- passed.