merge 并添加新模型mini

This commit is contained in:
sijinhui 2024-07-19 13:03:36 +08:00
parent 35532f8781
commit 69c434c047
3 changed files with 13 additions and 2 deletions

View File

@ -286,6 +286,16 @@ export const DEFAULT_MODELS = [
providerType: "azure",
},
},
{
name: "gpt-4o-mini",
describe: "新出的,可以尝鲜",
available: true,
provider: {
id: "openai",
providerName: "OpenAI",
providerType: "openai",
},
},
{
name: "gpt-4-turbo-2024-04-09",
describe: "GPT-4,标准版",

View File

@ -9,6 +9,7 @@ import {
DEFAULT_MODELS,
DEFAULT_SYSTEM_TEMPLATE,
KnowledgeCutOffDate,
ServiceProvider,
StoreKey,
SUMMARIZE_MODEL,
GEMINI_SUMMARIZE_MODEL,

View File

@ -140,7 +140,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.98,
version: 3.99,
migrate(persistedState, version) {
const state = persistedState as ChatConfig;
@ -176,7 +176,7 @@ export const useAppConfig = createPersistStore(
// return { ...DEFAULT_CONFIG };
// }
if (version < 3.98) {
if (version < 3.99) {
// state.modelConfig = DEFAULT_CONFIG.modelConfig;
return { ...DEFAULT_CONFIG };
// state.modelConfig.template =