From 7f13a8d2bce33dfe0aa34a2fd29e4824dc6a3fba Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Fri, 19 May 2023 18:34:48 +0800 Subject: [PATCH] feat: support fast chatgpt mobile models --- app/store/config.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/store/config.ts b/app/store/config.ts index 1e960456f..5fc9cd546 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -68,6 +68,14 @@ export const ALL_MODELS = [ name: "gpt-4-32k-0314", available: ENABLE_GPT4, }, + { + name: "gpt-4-mobile", + available: ENABLE_GPT4, + }, + { + name: "ext-davinci-002-render-sha-mobile", + available: true, + }, { name: "gpt-3.5-turbo", available: true, @@ -98,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; @@ -163,6 +171,6 @@ export const useAppConfig = create()( return state; }, - }, - ), + } + ) );