mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 22:14:37 +00:00
fix: sort models
This commit is contained in:
parent
696d14167c
commit
782ed12244
1 changed files with 1 additions and 0 deletions
|
|
@ -651,6 +651,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
items={models}
|
||||
current={local.model.current()}
|
||||
filterKeys={["provider.name", "name", "id"]}
|
||||
sortBy={(a, b) => a.name.localeCompare(b.name)}
|
||||
// groupBy={(x) => (local.model.recent().includes(x) ? "Recent" : x.provider.name)}
|
||||
groupBy={(x) => x.provider.name}
|
||||
sortGroupsBy={(a, b) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue