Skip to content

fix(doctor): skip /models health check for MiniMax-CN (Closes #13757)#13780

Closed
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/13757-minimax-doctor
Closed

fix(doctor): skip /models health check for MiniMax-CN (Closes #13757)#13780
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/13757-minimax-doctor

Conversation

@ms-alan

@ms-alan ms-alan commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Summary

MiniMax-CN (api.minimaxi.com) does not have a /v1/models endpoint — it returns HTTP 404. The health check was incorrectly configured with a URL and _supports_health_check=True, causing a spurious failure.

Follow the same pattern as OpenCode Go: set url=None and _supports_health_check=False so hermes doctor prints (key configured) without probing a non-existent endpoint.

Changes

  • hermes_cli/doctor.py: MiniMax-CN entry changed from (url, True) to (None, False)

Testing

curl -s -o /dev/null -w "%{http_code}" "https://api.minimaxi.com/v1/models" → 404
curl -s -X POST "https://api.minimaxi.com/v1/chat/completions" ... → 200

Closes #13757

MiniMax-CN (api.minimaxi.com) does not have a /v1/models endpoint
(returns 404). The existing entry was marked True (supports check)
with the wrong URL. Follow the same pattern as OpenCode Go — set
url=None and _supports_health_check=False so it prints '(key configured)'
without probing a non-existent endpoint.

Closes NousResearch#13757
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard provider/minimax MiniMax (Anthropic transport) labels Apr 22, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #12162, #12768, #8079 — all address the same MiniMax-CN /models 404 in hermes doctor. This PR and #12162 appear to be duplicate fixes.

@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #12162, #12768, #8079 — all address the same MiniMax-CN /models 404 in hermes doctor.

@trevorgordon981

Copy link
Copy Markdown

I have verified this solution by inspecting the code changes. The fix correctly sets and for the MiniMax-CN provider in the doctor command. This prevents false-positive 404 errors when the endpoint is probed, as MiniMax-CN (api.minimaxi.com) does not support this endpoint. The fix follows the established pattern used for other providers like OpenCode Go.\n\nTested and confirmed. ✅

@teknium1

Copy link
Copy Markdown
Contributor

Closing as superseded by #19663.

Triage notes (high confidence):
hermes_cli/doctor.py:265 already has the check_models=False flag for MiniMax (China), skipping the health check. Merged in #19663.

Thanks for the contribution — the underlying problem this PR addresses has been resolved by the linked PR on current main. If you believe this was closed in error, please comment and we'll reopen.

(Bulk-closed during a CLI PR triage sweep.)

@teknium1 teknium1 closed this May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have provider/minimax MiniMax (Anthropic transport) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doctor health check incorrectly uses /models endpoint for MiniMax-CN, which returns 404

4 participants