Skip to content

Commit fd413c7

Browse files
authored
Merge pull request #2947 from KeithHello/main
2 parents 3e2c5af + 5933b3d commit fd413c7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/store/chat.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { create } from "zustand";
2-
import { persist } from "zustand/middleware";
3-
41
import { trimTopic } from "../utils";
52

63
import Locale, { getLang } from "../locales";

app/store/config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function limitNumber(
7070
max: number,
7171
defaultValue: number,
7272
) {
73-
if (typeof x !== "number" || isNaN(x)) {
73+
if (isNaN(x)) {
7474
return defaultValue;
7575
}
7676

@@ -133,9 +133,7 @@ export const useAppConfig = createPersistStore(
133133
.customModels.split(",")
134134
.filter((v) => !!v && v.length > 0)
135135
.map((m) => ({ name: m, available: true }));
136-
137-
const models = get().models.concat(customModels);
138-
return models;
136+
return get().models.concat(customModels);
139137
},
140138
}),
141139
{

0 commit comments

Comments
 (0)