Skip to content

fix: wire Ollama Cloud into /model TUI picker (0 models regression) - #11066

Merged
kshitijk4poor merged 1 commit into
mainfrom
salvage/ollama-cloud-model-picker-10964
Apr 16, 2026
Merged

kshitijk4poor merged 1 commit into
mainfrom
salvage/ollama-cloud-model-picker-10964

Conversation

@kshitijk4poor

Copy link
Copy Markdown
Contributor

Summary

Salvage of PR #10964 by @jvcl. Fixes #10977/model TUI picker shows "Ollama Cloud (0 models)" because provider_model_ids() and list_authenticated_providers() had no case for "ollama-cloud".

Based on #10964 by @jvcl — cherry-picked with authorship preserved.

Root cause

fetch_ollama_cloud_models() was implemented (PR #10782) but not wired into the two functions the /model TUI picker depends on:

  • provider_model_ids() in hermes_cli/models.py
  • list_authenticated_providers() in hermes_cli/model_switch.py

The hermes model CLI subcommand worked fine because it calls fetch_ollama_cloud_models() directly.

Changes

  • hermes_cli/models.py: Add ollama-cloud case to provider_model_ids() — follows the same pattern as anthropic, copilot, nous, ai-gateway
  • hermes_cli/model_switch.py: Populate curated dict for ollama-cloud in list_authenticated_providers() — follows the existing nous pattern
  • tests/hermes_cli/test_ollama_cloud_provider.py: Add 3 tests covering provider_model_ids(), list_authenticated_providers() model count, and negative (no creds) case

Test plan

  • 40 ollama-cloud tests pass
  • 2153 broader CLI tests pass (11 pre-existing platform-specific failures)
  • E2E verified: provider_model_ids("ollama-cloud") returns models via models.dev fallback
  • Provider coverage audit confirmed ollama-cloud is fully wired across all 10+ enumeration sites

provider_model_ids() and list_authenticated_providers() had no case for
"ollama-cloud", so the /model slash command showed 0 models despite
fetch_ollama_cloud_models() being fully implemented. The CLI subcommand
worked because it called fetch_ollama_cloud_models() directly.

- Add ollama-cloud case to provider_model_ids() in models.py
- Populate curated dict for ollama-cloud in list_authenticated_providers()
- Add tests for both code paths
@kshitijk4poor
kshitijk4poor merged commit 5b4773f into main Apr 16, 2026
5 of 7 checks passed
@kshitijk4poor
kshitijk4poor deleted the salvage/ollama-cloud-model-picker-10964 branch April 16, 2026 14:17
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]: Ollama Cloud shows 0 models in /model TUI picker

2 participants