feat: scrollable mask lists in new-chat page

This commit is contained in:
Yidadaa
2023-05-20 23:49:10 +08:00
parent 6d8c7ba140
commit f14b413b7c
4 changed files with 67 additions and 68 deletions

View File

@@ -73,7 +73,7 @@ export const ALL_MODELS = [
available: ENABLE_GPT4,
},
{
name: "ext-davinci-002-render-sha-mobile",
name: "text-davinci-002-render-sha-mobile",
available: true,
},
{
@@ -106,13 +106,13 @@ export const ALL_MODELS = [
},
] as const;
export type ModelType = typeof ALL_MODELS[number]["name"];
export type ModelType = (typeof ALL_MODELS)[number]["name"];
export function limitNumber(
x: number,
min: number,
max: number,
defaultValue: number
defaultValue: number,
) {
if (typeof x !== "number" || isNaN(x)) {
return defaultValue;
@@ -171,6 +171,6 @@ export const useAppConfig = create<ChatConfigStore>()(
return state;
},
}
)
},
),
);