Skip to content

fix(model-picker): hide providers with no curated LLM models#7267

Open
akhater wants to merge 6 commits into
NousResearch:mainfrom
akhater:fix/model-picker-hide-empty-providers
Open

fix(model-picker): hide providers with no curated LLM models#7267
akhater wants to merge 6 commits into
NousResearch:mainfrom
akhater:fix/model-picker-hide-empty-providers

Conversation

@akhater

@akhater akhater commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The `/model` picker (`list_authenticated_providers`) walks every provider whose env var is set and appends it regardless of whether there are any models to show. This breaks down when an API key is set for a non-LLM feature.

Concrete case: setting `GROQ_API_KEY` to enable Groq Whisper STT makes Groq appear in the LLM picker as "0 models" — unclickable, noisy, and confusing.

Fix

In the Hermes-mapped providers loop, skip any provider whose curated model list is empty. User-defined (`providers:`) and `custom_providers:` entries are unaffected since they already require at least one model to be configured.

Test plan

  • With `GROQ_API_KEY` set and no LLM curated list for Groq, `/model` no longer shows a "Groq — 0 models" row
  • Providers with curated lists (openrouter, anthropic, openai, etc.) still appear normally
  • User-defined and custom_providers entries still work

akhater pushed a commit to akhater/hermes-agent that referenced this pull request Apr 10, 2026
akhater pushed a commit to akhater/hermes-agent that referenced this pull request Apr 10, 2026
Drop our collapsed-to-single-"custom" hack in favour of upstream's
design: each custom_providers entry gets its own slug via
custom_provider_slug(). resolve_provider_full() already handles these
slugs natively so PATH A no longer needs a special case.

Retain the if total == 0: continue guard (our NousResearch#7267 fix) so providers
with no models (e.g. Groq keyed for STT only) stay hidden.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@akhater akhater force-pushed the fix/model-picker-hide-empty-providers branch from f6a1d15 to abc7827 Compare April 29, 2026 05:09
@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 labels Apr 29, 2026
@akhater akhater force-pushed the fix/model-picker-hide-empty-providers branch from abc7827 to b2b8ef4 Compare May 1, 2026 19:15
@akhater akhater force-pushed the fix/model-picker-hide-empty-providers branch from b2b8ef4 to 1c0d7c6 Compare May 9, 2026 08:44
Ubuntu and others added 3 commits May 9, 2026 12:12
The /model picker (list_authenticated_providers) walks every provider
whose env var is set and adds it to the picker regardless of whether
there are any models to show. This breaks down when an API key is set
for a non-LLM feature — e.g. setting GROQ_API_KEY to enable Groq
Whisper STT makes Groq appear in the LLM picker as "0 models", which
users can't click and which clutters the list.

Skip any provider whose curated model list is empty. User-defined and
custom_providers entries are unaffected since they already gate on
having at least one model configured.

(cherry picked from commit f6a1d15)
(cherry picked from commit ba6a77d436888d993afb76fa3090b49b3461c0cb)
@akhater akhater force-pushed the fix/model-picker-hide-empty-providers branch from 1c0d7c6 to ad85996 Compare May 9, 2026 09:17
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 type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants