Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
v2.9.10 (#63)
Browse files Browse the repository at this point in the history
* feat: sort model by name

* Update tauri.conf.json

---------

Co-authored-by: Yidadaa <[email protected]>
  • Loading branch information
H0llyW00dzZ and Yidadaa authored Nov 7, 2023
1 parent 5c74792 commit 75dc5e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export const useAppConfig = createPersistStore(
.customModels.split(",")
.filter((v) => !!v && v.length > 0)
.map((m) => ({ name: m, available: true }));
return get().models.concat(customModels);
const allModels = get().models.concat(customModels);
allModels.sort((a, b) => (a.name < b.name ? -1 : 1));
return allModels;
},
}),
{
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"package": {
"productName": "ChatGPT Next Web",
"version": "2.9.9"
"version": "2.9.10"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 75dc5e6

Please sign in to comment.