mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 04:42:46 +08:00
fixup
This commit is contained in:
@@ -137,6 +137,7 @@ export const useAppConfig = create<ChatConfigStore>()(
|
|||||||
allModels() {
|
allModels() {
|
||||||
const customModels = get()
|
const customModels = get()
|
||||||
.customModels.split(",")
|
.customModels.split(",")
|
||||||
|
.filter((v) => !!v && v.length > 0)
|
||||||
.map((m) => ({ name: m, available: true }));
|
.map((m) => ({ name: m, available: true }));
|
||||||
|
|
||||||
const models = get().models.concat(customModels);
|
const models = get().models.concat(customModels);
|
||||||
|
Reference in New Issue
Block a user