Skip to content

fix(doctor): skip /models health check for MiniMax providers#822

Closed
Bartok9 wants to merge 1 commit into
NousResearch:mainfrom
Bartok9:fix/811-minimax-doctor-check
Closed

fix(doctor): skip /models health check for MiniMax providers#822
Bartok9 wants to merge 1 commit into
NousResearch:mainfrom
Bartok9:fix/811-minimax-doctor-check

Conversation

@Bartok9

@Bartok9 Bartok9 commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #811 — MiniMax APIs (both global and China) don't support the /v1/models endpoint, causing hermes doctor to always show HTTP 404 for these providers even when correctly configured.

Changes

Added a fifth element to the _apikey_providers tuple to indicate whether the provider supports the /models health check endpoint. For providers that don't support it (MiniMax), we skip the HTTP check entirely and show (key configured) when a valid API key is present.

Before:

◆ API Connectivity
  ⚠ MiniMax              (HTTP 404)

After:

◆ API Connectivity
  ✓ MiniMax              (key configured)

Rationale

The issue author did the root cause analysis: MiniMax simply doesn't support /v1/models. Since there's no free health-check endpoint available (other endpoints consume tokens), the pragmatic fix is to show the key is configured without false-negative warnings.

…earch#811)

MiniMax APIs (both global and China) don't support the /v1/models endpoint,
causing `hermes doctor` to always show HTTP 404 for these providers even
when correctly configured.

Changed the doctor to skip the health check for MiniMax and instead show
'(key configured)' when a valid API key is present.

Closes NousResearch#811
@Bartok9

Bartok9 commented Mar 10, 2026

Copy link
Copy Markdown
Contributor Author

Note: The CI failure is unrelated to this PR. The test test_vision_tools.py::TestErrorLoggingExcInfo::test_analysis_error_logs_exc_info is also failing on main branch. Filed #835 to track.

teknium1 pushed a commit that referenced this pull request Mar 11, 2026
MiniMax APIs (global and China) don't support /v1/models, causing
hermes doctor to always show HTTP 404 even with valid API keys.
Skip the HTTP check for these providers and show '(key configured)'
when the API key is present.

Cherry-picked from PR #822 by Bartok9, rebased onto current main.

Fixes #811

Co-authored-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #947. Your commit was cherry-picked with authorship preserved onto current main (original branch was 197 commits behind). Thanks for the fix and the clear root cause analysis in the issue! 🎉

@teknium1 teknium1 closed this Mar 11, 2026
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
MiniMax APIs (global and China) don't support /v1/models, causing
hermes doctor to always show HTTP 404 even with valid API keys.
Skip the HTTP check for these providers and show '(key configured)'
when the API key is present.

Cherry-picked from PR NousResearch#822 by Bartok9, rebased onto current main.

Fixes NousResearch#811

Co-authored-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
MiniMax APIs (global and China) don't support /v1/models, causing
hermes doctor to always show HTTP 404 even with valid API keys.
Skip the HTTP check for these providers and show '(key configured)'
when the API key is present.

Cherry-picked from PR NousResearch#822 by Bartok9, rebased onto current main.

Fixes NousResearch#811

Co-authored-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
MiniMax APIs (global and China) don't support /v1/models, causing
hermes doctor to always show HTTP 404 even with valid API keys.
Skip the HTTP check for these providers and show '(key configured)'
when the API key is present.

Cherry-picked from PR NousResearch#822 by Bartok9, rebased onto current main.

Fixes NousResearch#811

Co-authored-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
MiniMax APIs (global and China) don't support /v1/models, causing
hermes doctor to always show HTTP 404 even with valid API keys.
Skip the HTTP check for these providers and show '(key configured)'
when the API key is present.

Cherry-picked from PR NousResearch#822 by Bartok9, rebased onto current main.

Fixes NousResearch#811

Co-authored-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MiniMax does not support a https://api.minimax.io/v1/models URL, so the hermes doctor command always reports MiniMax as HTTP 404

2 participants