hermes - 💡(How to fix) Fix Feature Request: Model allowlist for ollama-cloud provider [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Problem

The ollama-cloud provider uses live dynamic discovery — it hits ollama.com/v1/models on every /model invocation, merges with models.dev, and shows everything. For users with a small, known set of models (5 in my case), this means scrolling through a long list of irrelevant models every time.

Providers with curated catalogs (OpenRouter, Nous Portal) get clean picker lists. Dynamic providers like ollama-cloud and lmstudio don't have an equivalent filtering mechanism.

Proposed solution

Add a model_allowlist config key to model_catalog.providers.<provider> that lets users specify which models appear in the picker:

model_catalog: providers: ollama-cloud: model_allowlist: - deepseek-v4-pro - gemma4:31b - glm-5.1 - qwen3.5 - minimax-m2.7

When set, the picker shows only that subset. When empty (default), behavior is unchanged — show all dynamically discovered models.

Affected code

  • hermes_cli/config.py — model_catalog.providers default schema
  • hermes_cli/model_switch.py — get_model_picker_entries(), around line 1171 where fetch_ollama_cloud_models() feeds the curated dict
  • Could be generalized to apply to any dynamic-discovery provider (ollama-cloud, lmstudio, custom providers that return large lists)

Alternatives considered

  • Self-hosting a curation JSON and pointing model_catalog.providers.ollama-cloud.url at it — works but adds infrastructure overhead
  • Freezing the cache file — fragile, breaks on TTL expiry
  • Skipping the picker and using /model <name> directly — works but discards the picker UX

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature Request: Model allowlist for ollama-cloud provider [1 pull requests]