diff --git a/app/constant.ts b/app/constant.ts index cd42acbe3..3cefb6f3b 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -125,7 +125,7 @@ Latex inline: \\(x^2\\) Latex block: $$e=mc^2$$ `; -export const SUMMARIZE_MODEL = "gpt-35-turbo-0125"; +export const SUMMARIZE_MODEL = "gpt-4o"; export const GEMINI_SUMMARIZE_MODEL = "gemini-pro"; export const KnowledgeCutOffDate: Record = { @@ -206,7 +206,7 @@ const anthropicModels = [ export const DEFAULT_MODELS = [ { - name: "gpt-3.5-turbo-0125", + name: "gpt-3.5-turbo", describe: "GPT-3,质量一般,便宜", available: true, provider: { @@ -235,16 +235,16 @@ export const DEFAULT_MODELS = [ providerType: "openai", }, }, - { - name: "gpt-35-turbo-0125", - describe: "GPT-3,微软,备用", - available: true, - provider: { - id: "openai", - providerName: "OpenAI", - providerType: "openai", - }, - }, + // { + // name: "gpt-35-turbo-0125", + // describe: "GPT-3,微软,备用", + // available: true, + // provider: { + // id: "openai", + // providerName: "OpenAI", + // providerType: "openai", + // }, + // }, { name: "claude-3-opus-20240229", describe: "claude第三代模型最强版", @@ -255,16 +255,16 @@ export const DEFAULT_MODELS = [ providerType: "openai", }, }, - { - name: "gpt-4-vision-preview", - available: true, - describe: "GPT-4多模态,图像识别", - provider: { - id: "openai", - providerName: "OpenAI", - providerType: "openai", - }, - }, + // { + // name: "gpt-4-vision-preview", + // available: true, + // describe: "GPT-4多模态,图像识别", + // provider: { + // id: "openai", + // providerName: "OpenAI", + // providerType: "openai", + // }, + // }, { name: "gemini-1.5-pro-latest", available: true, @@ -318,7 +318,7 @@ export const DEFAULT_MODELS = [ ] as const; export const AZURE_MODELS: string[] = [ - "gpt-35-turbo-0125", + //"gpt-35-turbo-0125", "gpt-4-turbo-2024-04-09", "gpt-4o", ]; diff --git a/app/masks/cn.ts b/app/masks/cn.ts index 41f13b8ce..c015d7b73 100644 --- a/app/masks/cn.ts +++ b/app/masks/cn.ts @@ -33,7 +33,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, @@ -59,7 +59,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, @@ -85,7 +85,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, @@ -111,7 +111,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, @@ -143,7 +143,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 0.5, max_tokens: 2000, presence_penalty: 0, @@ -169,7 +169,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, @@ -202,7 +202,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, @@ -235,7 +235,7 @@ export const CN_MASKS: BuiltinMask[] = [ }, ], modelConfig: { - model: "gpt-35-turbo-0125", + model: "gpt-3.5-turbo", temperature: 1, max_tokens: 2000, presence_penalty: 0, diff --git a/app/store/config.ts b/app/store/config.ts index b1c235a01..142e5691a 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -138,7 +138,7 @@ export const useAppConfig = createPersistStore( }), { name: StoreKey.Config, - version: 3.92, + version: 3.93, migrate(persistedState, version) { const state = persistedState as ChatConfig; @@ -174,7 +174,7 @@ export const useAppConfig = createPersistStore( // return { ...DEFAULT_CONFIG }; // } - if (version < 3.92) { + if (version < 3.93) { state.modelConfig = DEFAULT_CONFIG.modelConfig; // state.modelConfig.template = // state.modelConfig.template !== DEFAULT_INPUT_TEMPLATE