diff options
| author | Adam <[email protected]> | 2025-12-13 20:25:14 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-13 20:25:24 -0600 |
| commit | 629f475f633f250ec5a5562a20c6135b2c4a74fc (patch) | |
| tree | 386f631aba0a154444a24387fd4df8573810fa5e | |
| parent | 43a7c1dd8c67cc853f8c3e3e5457fac1da26d836 (diff) | |
| download | opencode-629f475f633f250ec5a5562a20c6135b2c4a74fc.tar.gz opencode-629f475f633f250ec5a5562a20c6135b2c4a74fc.zip | |
fix: sort models
| -rw-r--r-- | packages/desktop/src/components/prompt-input.tsx | 1 |
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) => { |
