Skip to content

fix(doctor): add check_url flag to skip /models for providers that don't support it#833

Open
ygd58 wants to merge 1 commit intoNousResearch:mainfrom
ygd58:fix/doctor-skip-models-check-no-endpoint
Open

fix(doctor): add check_url flag to skip /models for providers that don't support it#833
ygd58 wants to merge 1 commit intoNousResearch:mainfrom
ygd58:fix/doctor-skip-models-check-no-endpoint

Conversation

@ygd58
Copy link
Contributor

@ygd58 ygd58 commented Mar 10, 2026

Summary

Fixes #811 — MiniMax APIs (both global and China) return 404 on /v1/models by design, causing hermes doctor to falsely report connectivity failures.

Approach

Rather than adding a one-off special case for MiniMax, this PR extends the _apikey_providers tuple with a check_url boolean field. Providers that don't expose a /models health-check endpoint can set check_url=False and will show (API key configured) when a valid key is present.

This is more maintainable than #822 — any future provider with the same limitation only needs a single flag change.
Before:
◆ API Connectivity
⚠ MiniMax (HTTP 404)
⚠ MiniMax (China) (HTTP 404)

After:
API Connectivity
✓ MiniMax (API key configured)
✓ MiniMax (China) (API key configured)

Changes

  • check_url field added to _apikey_providers tuple
  • MiniMax and MiniMax (China) both set to check_url=False
  • Removes the separate post-loop MiniMax block
  • Also fixes MiniMax (China) which had the same issue but was previously unreported

…n't support it

MiniMax (global and China) return 404 on /v1/models by design.
Instead of treating this as a connectivity failure, providers can now
set check_url=False in _apikey_providers to show '(API key configured)'
when a valid key is present.

- Adds check_url field to _apikey_providers tuple
- MiniMax and MiniMax (China) both set to check_url=False
- Removes the separate MiniMax-specific block after the loop
- Future providers with no /models endpoint can use the same flag

Closes NousResearch#811
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

1 participant