Preface¶
When switching models in DSH Web, the model selector displays the current model name, but from the same row it is often not apparent which provider group this model comes from. If you have configured multiple ModelProviderGroups in your Host, or frequently switch between models from different providers, you need to open the /model dialog and compare the group titles to confirm “which provider’s model is actually being used in the current session.”
The dsh-model-provider-badge introduced below (maintained by huihuangdi) adds a compact badge to the left of the model selector in the input box’s tool row, directly displaying the provider name corresponding to the model used in the current session, sharing the same per-session model directory data as the model selector.
What This Is¶
dsh-model-provider-badge is a client-type plugin in the DSH community catalog: it displays the provider (group name) of the model used in the current session immediately to the left of the model selector in the DSH Web input box’s tool row. Repository: https://github.com/huihuangdi/dsh-model-provider-badge; catalog page: https://www.skillhub.cn/plugins/huihuangdi/dsh-model-provider-badge.
The plugin is pure JavaScript with no build step. The current package version is 1.2.1, licensed under MIT.
Core Features¶
What the Badge Displays¶
- The provider name is taken from the name of the group (
ModelProviderGroup.name) to which the model belongs in the Host model directory, consistent with the group titles in the/modeldialog and the model selector. - The data source is the same as the model selector: the client service’s
modelDirectories(per-session). When a new session has not yet selected a model, it displays the provider corresponding to the deployment’s default model; the badge updates immediately after switching models. - If a provider has been removed from the directory, it falls back sequentially to the last resolved name, then to the provider id itself.
Position in the UI¶
The slot is conversation.input.right (declared by @deepseek-ai/dsh-client-ui-conversation), rendered before the model selector in the DOM, i.e., to the left of the model name. The styling uses theme tokens (--dsw-alias-*, --dsw-radius-sm), with a height of 28px, font size 13px/400, and spacing of 4px, aligned with the controls in the same row. Text is provided through the client locale (namespace model-provider-badge, built-in zh / en).
Implementation Overview¶
index.js: The Host side, a standard plugin entry; when the profile includes a Web server, it registers a write-only diagnostic route.client.js: The browser side, loaded viawindow.__ModuleLoader__, occupying the slot throughctx.slots.inject(...)andctx.slots.register(...).
Installation and Activation¶
The installation command must use the web profile (the client half is loaded by the Web shell, not separately by the Host):
dsh plugin --profile web add github:huihuangdi/dsh-model-provider-badge
After installation, refresh the page once. You can also point to a local directory:
dsh plugin --profile web add /path/to/dsh-model-provider-badge
No npm install or lifecycle scripts are involved, and no allowBuilds authorization is required.
Typical Usage and Self-Test¶
No additional configuration is needed for daily use: after installing and refreshing, open any conversation, and you will see the provider badge to the left of the model selector in the input box’s tool row; when switching models, the badge updates according to modelDirectories.
The maintainer provides an activation self-test (replicating the browser-side service topology using the real @deepseek-ai/cordis):
node test/activation.selftest.mjs
If DSH is installed in a non-default path, you can set DSH_INSTALL=<@deepseek-ai/dsh directory> and then run the above command.
Use Cases and Notes¶
Suitable for developers who frequently switch between multi-provider models in DSH Web and want to confirm the current provider at a glance without opening /model.
Please review the repository source code and the MIT license yourself before installation; the plugin runs with the current dsh process permissions. Like all community plugins, the community catalog is an independent site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-model-provider-badge brings the provider group names from the Host model directory into the Web input box’s tool row, sharing the data source with the model selector, reducing the back-and-forth verification of “selected a model but can’t remember which provider.”
- Catalog page: https://www.skillhub.cn/plugins/huihuangdi/dsh-model-provider-badge
- GitHub: https://github.com/huihuangdi/dsh-model-provider-badge# Preface
When switching models in DSH Web, the model selector displays the current model name, but from the same row it is often not apparent which provider group this model comes from. If you have configured multiple ModelProviderGroups in your Host, or frequently switch between models from different providers, you need to open the /model dialog and compare the group titles to confirm “which provider’s model is actually being used in the current session.”
The dsh-model-provider-badge introduced below (maintained by huihuangdi) adds a compact badge to the left of the model selector in the input box’s tool row, directly displaying the provider name corresponding to the model used in the current session, sharing the same per-session model directory data as the model selector.
What This Is¶
dsh-model-provider-badge is a client-type plugin in the DSH community catalog: it displays the provider (group name) of the model used in the current session immediately to the left of the model selector in the DSH Web input box’s tool row. Repository: https://github.com/huihuangdi/dsh-model-provider-badge; catalog page: https://www.skillhub.cn/plugins/huihuangdi/dsh-model-provider-badge.
The plugin is pure JavaScript with no build step. The current package version is 1.2.1, licensed under MIT.
Core Features¶
What the Badge Displays¶
- The provider name is taken from the name of the group (
ModelProviderGroup.name) to which the model belongs in the Host model directory, consistent with the group titles in the/modeldialog and the model selector. - The data source is the same as the model selector: the client service’s
modelDirectories(per-session). When a new session has not yet selected a model, it displays the provider corresponding to the deployment’s default model; the badge updates immediately after switching models. - If a provider has been removed from the directory, it falls back sequentially to the last resolved name, then to the provider id itself.
Position in the UI¶
The slot is conversation.input.right (declared by @deepseek-ai/dsh-client-ui-conversation), rendered before the model selector in the DOM, i.e., to the left of the model name. The styling uses theme tokens (--dsw-alias-*, --dsw-radius-sm), with a height of 28px, font size 13px/400, and spacing of 4px, aligned with the controls in the same row. Text is provided through the client locale (namespace model-provider-badge, built-in zh / en).
Implementation Overview¶
index.js: The Host side, a standard plugin entry; when the profile includes a Web server, it registers a write-only diagnostic route.client.js: The browser side, loaded viawindow.__ModuleLoader__, occupying the slot throughctx.slots.inject(...)andctx.slots.register(...).
Installation and Activation¶
The installation command must use the web profile (the client half is loaded by the Web shell, not separately by the Host):
dsh plugin --profile web add github:huihuangdi/dsh-model-provider-badge
After installation, refresh the page once. You can also point to a local directory:
dsh plugin --profile web add /path/to/dsh-model-provider-badge
No npm install or lifecycle scripts are involved, and no allowBuilds authorization is required.
Typical Usage and Self-Test¶
No additional configuration is needed for daily use: after installing and refreshing, open any conversation, and you will see the provider badge to the left of the model selector in the input box’s tool row; when switching models, the badge updates according to modelDirectories.
The maintainer provides an activation self-test (replicating the browser-side service topology using the real @deepseek-ai/cordis):
node test/activation.selftest.mjs
If DSH is installed in a non-default path, you can set DSH_INSTALL=<@deepseek-ai/dsh directory> and then run the above command.
Use Cases and Notes¶
Suitable for developers who frequently switch between multi-provider models in DSH Web and want to confirm the current provider at a glance without opening /model.
Please review the repository source code and the MIT license yourself before installation; the plugin runs with the current dsh process permissions. Like all community plugins, the community catalog is an independent site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-model-provider-badge brings the provider group names from the Host model directory into the Web input box’s tool row, sharing the data source with the model selector, reducing the back-and-forth verification of “selected a model but can’t remember which provider.”