mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +08:00
package
This commit is contained in:
@@ -228,22 +228,8 @@ export const DEFAULT_MODELS = [
|
||||
// providerType: "openai",
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// name: "gpt-4-turbo-2024-04-09",
|
||||
// available: true,
|
||||
// provider: {
|
||||
// id: "openai",
|
||||
// providerName: "OpenAI",
|
||||
// providerType: "openai",
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// name: "gpt-4",
|
||||
// describe: "GPT-4,聪明,贵,慢",
|
||||
// available: false,
|
||||
// },
|
||||
{
|
||||
name: "gpt-4-0125-preview",
|
||||
name: "gpt-4-turbo-2024-04-09",
|
||||
describe: "GPT-4,最新版,推荐",
|
||||
available: true,
|
||||
provider: {
|
||||
@@ -252,6 +238,21 @@ export const DEFAULT_MODELS = [
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// name: "gpt-4",
|
||||
// describe: "GPT-4,聪明,贵,慢",
|
||||
// available: false,
|
||||
// },
|
||||
// {
|
||||
// name: "gpt-4-0125-preview",
|
||||
// describe: "GPT-4,最新版,推荐",
|
||||
// available: true,
|
||||
// provider: {
|
||||
// id: "openai",
|
||||
// providerName: "OpenAI",
|
||||
// providerType: "openai",
|
||||
// },
|
||||
// },
|
||||
{
|
||||
name: "gpt-4-1106-preview",
|
||||
describe: "GPT-4,旧版,备用",
|
||||
@@ -262,16 +263,6 @@ export const DEFAULT_MODELS = [
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "gpt-4-turbo-2024-04-09",
|
||||
describe: "GPT-4,新版,测试",
|
||||
available: true,
|
||||
provider: {
|
||||
id: "openai",
|
||||
providerName: "OpenAI",
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "claude-3-opus-20240229",
|
||||
describe: "claude第三代模型最强版",
|
||||
@@ -345,8 +336,8 @@ export const DEFAULT_MODELS = [
|
||||
] as const;
|
||||
|
||||
export const AZURE_MODELS: string[] = [
|
||||
"gpt-35-turbo-0125",
|
||||
"gpt-4-0125-preview",
|
||||
// "gpt-35-turbo-0125",
|
||||
"gpt-4-turbo-2024-04-09",
|
||||
];
|
||||
// export const AZURE_PATH = AZURE_MODELS.map((m) => { m: `openai/deployments/${m}/chat/completions`});
|
||||
// export const AZURE_PATH = AZURE_MODELS.map((m) => ({ m: `openai/deployments/${m}/chat/completions`} ));
|
||||
|
||||
@@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
|
||||
}),
|
||||
{
|
||||
name: StoreKey.Config,
|
||||
version: 3.8994,
|
||||
version: 3.8995,
|
||||
migrate(persistedState, version) {
|
||||
const state = persistedState as ChatConfig;
|
||||
|
||||
@@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore(
|
||||
if (version < 3.8) {
|
||||
state.lastUpdate = Date.now();
|
||||
}
|
||||
if (version < 3.8994) {
|
||||
if (version < 3.8995) {
|
||||
state.lastUpdate = Date.now();
|
||||
return { ...DEFAULT_CONFIG };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user