Description
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
alt-glitch commentedon Jun 16, 2026
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.
teknium1 commentedon Jul 14, 2026
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:226skipsis_user_definedrows before routing-aggregator deduplication, preventing acustom:*provider from filtering its own model list.tests/hermes_cli/test_inventory.py:794covers the exactcustom:*self-dedup case and also confirms genuine aggregator overlap removal remains intact.b7fa62c53019a7e44599de4f6cdd30071ee7b7e4(fix(inventory): keep user-defined custom providers in model dedup), shipped inv2026.6.19.