From 75dc5e64aac5b8d41bd8cc787a3721f2fda9951b Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Wed, 8 Nov 2023 00:15:37 +0700 Subject: [PATCH] v2.9.10 (#63) * feat: sort model by name * Update tauri.conf.json --------- Co-authored-by: Yidadaa --- app/store/config.ts | 4 +++- src-tauri/tauri.conf.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/store/config.ts b/app/store/config.ts index 184355c94a3..0fbc26dfe0e 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -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; }, }), { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e9ff64b9fa1..86b122d55ec 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -9,7 +9,7 @@ }, "package": { "productName": "ChatGPT Next Web", - "version": "2.9.9" + "version": "2.9.10" }, "tauri": { "allowlist": {