feat: add MiniMax provider configuration - #210
octo-patch wants to merge 2 commits into
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.
|
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. |
|
Thanks for this. It is clean and well tested, but I am not merging a per-vendor block. There are four open requests for the same thing: MiniMax here, OpenRouter in #171, DeepSeek in #208, and a generic base URL in #143. Adding one vendor at a time means a settings block per vendor forever. I want one If you want to pick that up instead, say so and I will point you at the shape. It also conflicts with main now, after #220 rewrote the surrounding block. |
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.