mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix model dialog sorting
This commit is contained in:
parent
fc5fc2c570
commit
50bfff89c0
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,6 @@ export function DialogModel() {
|
|||
const sync = useSync()
|
||||
const dialog = useDialog()
|
||||
const [ref, setRef] = createSignal<DialogSelectRef<unknown>>()
|
||||
const { theme } = useTheme()
|
||||
|
||||
const options = createMemo(() => {
|
||||
return [
|
||||
|
|
@ -62,6 +61,7 @@ export function DialogModel() {
|
|||
footer: info.cost?.input === 0 && provider.id === "opencode" ? <Free /> : undefined,
|
||||
})),
|
||||
filter((x) => Boolean(ref()?.filter) || !local.model.recent().find((y) => isDeepEqual(y, x.value))),
|
||||
sortBy((x) => x.title),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue