summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-13 20:25:14 -0600
committerAdam <[email protected]>2025-12-13 20:25:24 -0600
commit629f475f633f250ec5a5562a20c6135b2c4a74fc (patch)
tree386f631aba0a154444a24387fd4df8573810fa5e
parent43a7c1dd8c67cc853f8c3e3e5457fac1da26d836 (diff)
downloadopencode-629f475f633f250ec5a5562a20c6135b2c4a74fc.tar.gz
opencode-629f475f633f250ec5a5562a20c6135b2c4a74fc.zip
fix: sort models
-rw-r--r--packages/desktop/src/components/prompt-input.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx
index 4d4cbf2c5..114e6d49d 100644
--- a/packages/desktop/src/components/prompt-input.tsx
+++ b/packages/desktop/src/components/prompt-input.tsx
@@ -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) => {