You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: search/filter in the composer model picker (patch ready)
#5122
The composer's model picker shows every model a provider advertises in one grouped list. With large catalogs that is a long scan; a live search field in the model-list pane would make choosing fast.
Proposed behavior
Search field at the top of the model-list pane (the menu opened from the model seat next to the composer input).
Filters the provider-grouped list as you type; a model matches on provider name/id and model name/id/description; groups with no surviving models disappear.
A "no models match" message when nothing survives.
The query resets whenever the menu reopens.
Implementation sketch
Adapted to packages/client/ui-model-selection (master) and running as a local patch on dsh web:
src/client/ModelSelect.tsx — query state, filteredGroups/filteredCount memos, search input in the model pane, no-match empty state; query reset in show()/close().
The /model popup shares the same directory and could reuse the same filter as a follow-up. Happy to share the full patch or adjust matching/wording/perf behavior if this direction is interesting to the team.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Summary
The composer's model picker shows every model a provider advertises in one grouped list. With large catalogs that is a long scan; a live search field in the model-list pane would make choosing fast.
Proposed behavior
Implementation sketch
Adapted to
packages/client/ui-model-selection(master) and running as a local patch on dsh web:src/client/ModelSelect.tsx—querystate,filteredGroups/filteredCountmemos, search input in the model pane, no-match empty state; query reset inshow()/close().src/client/ModelSelect.module.css—.searchfield row (30px input row, existing board-surface tokens).src/client/locales.ts—search.placeholder/search.aria/search.noResults(zh + en).tests/model-select.client.spec.tsx—ModelSelect model searchsuite (filter by name/id/group/description, no-match message, reset on reopen).Core filter:
The
/modelpopup shares the same directory and could reuse the same filter as a follow-up. Happy to share the full patch or adjust matching/wording/perf behavior if this direction is interesting to the team.All reactions