feat: now support gpt-4 model

This commit is contained in:
Yifei Zhang 2023-03-26 12:32:22 +00:00
parent e57bd51809
commit b57663bf02

View File

@ -49,22 +49,24 @@ export interface ChatConfig {
export type ModelConfig = ChatConfig["modelConfig"]; export type ModelConfig = ChatConfig["modelConfig"];
const ENABLE_GPT4 = true;
export const ALL_MODELS = [ export const ALL_MODELS = [
{ {
name: "gpt-4", name: "gpt-4",
available: false, available: ENABLE_GPT4,
}, },
{ {
name: "gpt-4-0314", name: "gpt-4-0314",
available: false, available: ENABLE_GPT4,
}, },
{ {
name: "gpt-4-32k", name: "gpt-4-32k",
available: false, available: ENABLE_GPT4,
}, },
{ {
name: "gpt-4-32k-0314", name: "gpt-4-32k-0314",
available: false, available: ENABLE_GPT4,
}, },
{ {
name: "gpt-3.5-turbo", name: "gpt-3.5-turbo",