Explorar el Código

fix: sort models

Adam hace 2 meses
padre
commit
629f475f63
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/desktop/src/components/prompt-input.tsx

+ 1 - 0
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) => {