Skip to content

Commit

Permalink
feat: support fast chatgpt mobile models
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored May 19, 2023
1 parent b0b078c commit 7f13a8d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions app/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -163,6 +171,6 @@ export const useAppConfig = create<ChatConfigStore>()(

return state;
},
},
),
}
)
);

0 comments on commit 7f13a8d

Please sign in to comment.