fix(cli): restore MiniMax doctor health-check skip (regression)#8079
fix(cli): restore MiniMax doctor health-check skip (regression)#8079vinsew wants to merge 1 commit into
Conversation
ee3f797 to
b1dc76c
Compare
…442f25) d442f25 re-enabled the /v1/models health check for both MiniMax and MiniMax (China) in hermes doctor, assuming the OpenAI-compat /v1 surface supports /models even though the Anthropic-compat /anthropic surface does not. That assumption is incorrect — neither surface exposes /v1/models: curl https://api.minimax.io/v1/models → HTTP 404 curl https://api.minimaxi.com/v1/models → HTTP 404 The real chat endpoint (POST /v1/text/chatcompletion_v2) works fine, so the runtime agent path is unaffected. Only hermes doctor is broken: every user with a MINIMAX_API_KEY or MINIMAX_CN_API_KEY sees a spurious ⚠ MiniMax (HTTP 404) warning. This restores the pre-d442f25a behavior (supports_health_check=False, default_url=None) and adds a regression test so the flag cannot be silently re-enabled. Refs: NousResearch#811
b1dc76c to
108da94
Compare
|
Thanks for flagging the duplicates. Quick objective comparison for whoever picks this up:
Two points the CN-only PRs don't address: 1. Global endpoint also 404s — not just CN: PRs #13780 / #15520 leave global probing, so users with 2. This is a regression — Happy to close this in favor of any of the others if the picked PR covers both endpoints. |
|
Closing — upstream has settled on the equivalent fix. After No need for the maintainers to triage between four PRs that all want the same outcome. Closing. |
Summary
supports_health_check=Falsefor both MiniMax and MiniMax (China) entries inhermes doctor's_apikey_providerslistProblem
d442f25a("fix: align MiniMax provider with official API docs") re-enabled the/v1/modelshealth check for MiniMax, assuming the OpenAI-compat/v1surface supports/modelseven though the Anthropic-compat/anthropicsurface does not. That assumption is incorrect — neither surface exposes/v1/models:The real chat endpoint works fine (
POST /v1/text/chatcompletion_v2→ 200), so the runtime agent path is unaffected. Onlyhermes doctoris broken: every user with aMINIMAX_API_KEYorMINIMAX_CN_API_KEYsees a spurious⚠ MiniMax (HTTP 404)warning.This was originally fixed in #811 (which set the flag to
False), andd442f25ainadvertently reverted that fix.Fix
Restores the pre-
d442f25abehavior:supports_health_check→Falsedefault_url→Nonehttps://api.minimax.io/v1/modelsURL, so thehermes doctorcommand always reports MiniMax as HTTP 404 #811Test plan
test_minimax_provider_health_check_disabledintests/hermes_cli/test_doctor.py— fails if the flag gets re-enabledtest_doctor.pysuite passes (18/18)hermes doctor— MiniMax now shows✓ MiniMax (China) (key configured)instead of⚠ MiniMax (China) (HTTP 404)Tested on macOS (Darwin 25.3.0), Python 3.11.4, Hermes
27eeea05.Refs: #811