fix: handle oauth_minimax in auxiliary providers#22213
Open
LeonSGP43 wants to merge 1 commit into
Open
Conversation
This was referenced May 11, 2026
This was referenced May 21, 2026
This was referenced May 30, 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
auth_type: oauth_minimaxinagent.auxiliary_client.resolve_provider_clientresolve_minimax_oauth_runtime_credentials()so auxiliary MiniMax OAuth providers get the right token, base URL, and wrapped Anthropics-compatible clientRoot cause
agent/auxiliary_client.pynever handledoauth_minimax, so every auxiliary MiniMax OAuth config fell through to the genericunhandled auth_typewarning even though the runtime credential resolver already existed elsewhere.Validation
./scripts/run_tests.sh tests/agent/test_auxiliary_client.py -q -k 'minimax_oauth or AnthropicOAuthFlag'./scripts/run_tests.sh tests/hermes_cli/test_runtime_provider_resolution.py -q -k minimax_oauthgit diff --checkuv sync --frozen --extra alluv run --frozen ruff check .python scripts/lint_diff.py ...env -i ... python -m pytest tests/ --collect-only -q --ignore=tests/integration --ignore=tests/e2e -n autoFixes #21521