Skip to content

UI model picker shows 0 models for custom_providers entries #47258

Closed as not planned

Description

@an4811294-sys

Bug Description
When using a custom provider (e.g. SiliconFlow/硅基流动) with multiple models in custom_providers, the GUI model picker (via model.options JSON-RPC) shows the custom provider row with 0 models. The underlying list_authenticated_providers() correctly returns the full model list, but build_models_payload() delivers empty models to the frontend.

Steps to Reproduce
Configure a custom provider in config.yaml:
custom_providers:

  • name: SiliconFlow
    model: deepseek-ai/DeepSeek-V4-Flash
    base_url: https://api.siliconflow.cn/v1
    api_key: sk-...
  • name: SiliconFlow
    model: deepseek-ai/DeepSeek-V4-Pro
    base_url: https://api.siliconflow.cn/v1
    api_key: sk-...
  • name: SiliconFlow
    model: Qwen/Qwen3-32B
    base_url: https://api.siliconflow.cn/v1
    api_key: sk-...
    Open the GUI /model picker (click the model badge or use ModelPickerDialog)
    "SiliconFlow" appears as a provider row but shows 0 models
    Expected Behavior
    The custom provider row should show all live models fetched from the /v1/models endpoint (or at minimum the configured models).

Actual Behavior
list_authenticated_providers() called directly → ✅ 89 models returned
build_models_payload() (used by GUI's model.options RPC) → ❌ 0 models
The /model <model_name> slash command works fine as a workaround
The model list is lost somewhere in the post-processing inside build_models_payload() — likely in _reorder_canonical, the aggregator dedup logic, or one of _apply_pricing/_apply_capabilities.

Environment
OS: Windows 10
Hermes Version: 0.16.0
Python: 3.11.15
Mode: Desktop GUI (Web UI via TUI Gateway)
Code location: hermes_cli/inventory.py::build_models_payload() (lines ~148-205)
Workaround
Use /model <model_name> in the chat session to switch models directly instead of using the GUI picker:

代码
/model Qwen/Qwen3-32B
/model deepseek-ai/DeepSeek-V4-Pro --global

Activity

  1. added
    type/bugSomething isn't working
    comp/cliCLI entry point, hermes_cli/, setup wizard
    P2Medium — degraded but workaround exists
    duplicateThis issue or pull request already exists
    on Jun 16, 2026
  2. alt-glitch commented on Jun 16, 2026

    @alt-glitch

    Duplicate of #47042 — same root cause: build_models_payload() in hermes_cli/inventory.py empties custom-provider model lists because the dedup loop runs is_user_defined rows through _is_aggregator(), and is_aggregator('custom:...') returns True, so the provider is filtered against its own models. Same symptom (picker shows 0 models, /model works as a workaround) and same code location you cite. Also tracked by #47155/#47124; fix PR #46921.

  3. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    Thanks for the clear duplicate report and for preserving the useful root-cause details from #47042 and fix PR #46921. This is already fixed on current main. Automated hermes-sweeper review verified the exact picker behavior.

    • hermes_cli/inventory.py:226 skips is_user_defined rows before routing-aggregator deduplication, preventing a custom:* provider from filtering its own model list.
    • tests/hermes_cli/test_inventory.py:794 covers the exact custom:* self-dedup case and also confirms genuine aggregator overlap removal remains intact.
    • The fix is b7fa62c53019a7e44599de4f6cdd30071ee7b7e4 (fix(inventory): keep user-defined custom providers in model dedup), shipped in v2026.6.19.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardduplicateThis issue or pull request already existssweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions