Skip to content

fix(model): discover no-key custom provider catalogs - #61928

Merged
kshitijk4poor merged 4 commits into
NousResearch:mainfrom
kshitijk4poor:salvage/55158-custom-provider-catalog
Jul 10, 2026
Merged

fix(model): discover no-key custom provider catalogs#61928
kshitijk4poor merged 4 commits into
NousResearch:mainfrom
kshitijk4poor:salvage/55158-custom-provider-catalog

Conversation

@kshitijk4poor

Copy link
Copy Markdown
Collaborator

Summary

No-key custom providers with only an active model: now discover their live catalog, while explicit models: catalogs remain authoritative.

Changes

  • Preserve @ooiuuii's focused fix from fix(model): probe no-key custom provider catalogs #55158 on current main.
  • Derive explicit-catalog policy from declarations before display-list deduplication.
  • Preserve current-only GUI probing and discover_models: false behavior.
  • Replace the broad network stub with mutation-sensitive, per-test probe assertions.
  • Cover same-entry/grouped duplicates, empty catalogs, and current explicit catalogs.

Validation

  • 107 targeted tests passed.
  • Deterministic no-network E2E matrix: 8/8 scenarios passed.
  • Mutation checks caught both the old probe gate and post-dedup explicitness bug.
  • Ruff, ty diff, Windows footgun scan, and git diff --check passed.

Credit

Closes #40542.

@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have labels Jul 10, 2026
@kshitijk4poor
kshitijk4poor merged commit 69f1460 into NousResearch:main Jul 10, 2026
31 checks passed
teknium1 pushed a commit that referenced this pull request Jul 27, 2026
…gular default_model doesn't suppress live discovery

A providers: entry with only a default_model/model (no explicit models:
list) is un-narrowed — the singular field is just the active selection.
Section 3 derived has_explicit_models from the merged models list, so
the lone default_model entry counted as an explicit catalog and
suppressed the /v1/models probe for no-key endpoints, leaving a
one-line /model picker menu for local llama.cpp/Ollama/vLLM servers.

Track explicit models: declarations separately at group-build time
(mirrors section 4's declaration-tracking from #40542 / PR #61928) and
gate the probe on that instead.

Salvaged from PR #68984 by @vigilancetech-com (the probe_custom_providers
gate removal in that PR is not taken — the GUI no-probe gate is
intentional).
@kshitijk4poor
kshitijk4poor deleted the salvage/55158-custom-provider-catalog branch August 5, 2026 07:08
randlee pushed a commit to randlee/hermes-agent that referenced this pull request Aug 11, 2026
…gular default_model doesn't suppress live discovery

A providers: entry with only a default_model/model (no explicit models:
list) is un-narrowed — the singular field is just the active selection.
Section 3 derived has_explicit_models from the merged models list, so
the lone default_model entry counted as an explicit catalog and
suppressed the /v1/models probe for no-key endpoints, leaving a
one-line /model picker menu for local llama.cpp/Ollama/vLLM servers.

Track explicit models: declarations separately at group-build time
(mirrors section 4's declaration-tracking from NousResearch#40542 / PR NousResearch#61928) and
gate the probe on that instead.

Salvaged from PR NousResearch#68984 by @vigilancetech-com (the probe_custom_providers
gate removal in that PR is not taken — the GUI no-probe gate is
intentional).
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.

[Bug]: /model picker only shows 1 model for local custom providers without api_key (while hermes model CLI shows all)

3 participants