Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tools/delegate_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2215,6 +2215,17 @@ def _resolve_delegation_credentials(cfg: dict, parent_agent) -> dict:
elif "api.kimi.com/coding" in base_lower:
provider = "custom"
api_mode = "anthropic_messages"
elif (
base_url_hostname(configured_base_url)
in ("api.minimax.io", "api.minimaxi.com")
and "/anthropic" in base_lower
):
# MiniMax exposes an Anthropic-compatible endpoint at /anthropic.
# Without this branch, sub-agents fall back to provider=custom +
# api_mode=chat_completions and POST to /v1/chat/completions →
# HTTP 404 because that path doesn't exist on MiniMax.
provider = "minimax"
api_mode = "anthropic_messages"

return {
"model": configured_model,
Expand Down