OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
honoriomelo/dsh-model-picker-search
DSH Web GUI plugin: adds a live search field inside the model picker menu of the composer, plus the Effort (reasoning) selector. Drop-in replacement for the native model seat, sharing the same per-session ModelDirectory so /model popup, the effort selector, and the /model command stay consistent.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:honoriomelo/dsh-model-picker-search
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH Web GUI plugin. Adds a live search field inside the model picker menu
of the composer, plus the Effort (reasoning) selector that the native
ModelSelect ships with.
When you click the Model button in the composer, the menu now opens
already focused on a search box at the top. As you type, the list of
models is filtered in real time across every provider — matching against
the model id, model name, provider displayName, and provider name
(case-insensitive substring). The two-level (Model / Effort) submenu from
the native picker is preserved, so switching reasoning effort on a model
that supports it still works as before.
The plugin reads and writes the same per-session ModelDirectory the
native ModelSelect and /model popup consume, so every entry surface
stays consistent: select a model in the composer picker, and the
/model command in the chat shows the same selection; change effort
here, and the trigger label updates to show it.
No source code of DSH is modified — the plugin composes a new occupant
for the conversation.input.model slot, which DSH was designed to allow.
dsh plugin --profile web add link:/path/to/dsh-model-picker-search
Then restart dsh web (or refresh the page so the new bundle is picked
up).
lib/client.js): registers a single occupant for the
conversation.input.model slot. The component renders:_7KE1Ra_trigger look (label +
optional effort caption + chevron that rotates 180° when open);<input type="text"> at the top that filters
the model list as the user types;lib/index.js): a no-op entry kept so the bundle has a valid
host half. The plugin is driven entirely by the client — model data
comes from the shared ModelDirectory, so no host route or RPC is
needed and no host-side state is duplicated.The injected ModelDirectory (ctx.modelDirectories.directoryFor(sessionId))
is the same instance the native seat uses, which is what makes the two
entry surfaces share their state.
requestAnimationFrame to ensure the input is fully mounted
and focus({ preventScroll: true }) to avoid pushing the page.reasoningEffort if it's still valid for the new model
(matches the way the native seat handles it).dsh.client package metadata,
ctx.modelDirectories, and the conversation.input.model slot).--dsw-alias-*, --dsw-specific-menu, --dsw-shadow-lv3,
--dsw-alias-scrollbar-bg-l2), so it follows light/dark and the
brand overrides.MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: search。