mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
add gpt-4o
This commit is contained in:
parent
3158f87d74
commit
cb62fa7634
@ -130,6 +130,7 @@ export const GEMINI_SUMMARIZE_MODEL = "gemini-pro";
|
|||||||
|
|
||||||
export const KnowledgeCutOffDate: Record<string, string> = {
|
export const KnowledgeCutOffDate: Record<string, string> = {
|
||||||
default: "2021-09",
|
default: "2021-09",
|
||||||
|
"gpt-4o": "2023-10",
|
||||||
"gpt-4-turbo": "2023-12",
|
"gpt-4-turbo": "2023-12",
|
||||||
"gpt-4-turbo-2024-04-09": "2023-12",
|
"gpt-4-turbo-2024-04-09": "2023-12",
|
||||||
"gpt-4-turbo-preview": "2023-12",
|
"gpt-4-turbo-preview": "2023-12",
|
||||||
@ -234,16 +235,6 @@ export const DEFAULT_MODELS = [
|
|||||||
// describe: "GPT-4,聪明,贵,慢",
|
// describe: "GPT-4,聪明,贵,慢",
|
||||||
// available: false,
|
// available: false,
|
||||||
// },
|
// },
|
||||||
// {
|
|
||||||
// name: "gpt-4-0125-preview",
|
|
||||||
// describe: "GPT-4,最新版,推荐",
|
|
||||||
// available: true,
|
|
||||||
// provider: {
|
|
||||||
// id: "openai",
|
|
||||||
// providerName: "OpenAI",
|
|
||||||
// providerType: "openai",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
name: "gpt-35-turbo-0125",
|
name: "gpt-35-turbo-0125",
|
||||||
describe: "GPT-3,微软,备用",
|
describe: "GPT-3,微软,备用",
|
||||||
@ -295,13 +286,13 @@ export const DEFAULT_MODELS = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "gemini-pro-vision",
|
name: "gpt-4o",
|
||||||
available: false,
|
describe: "GPT-4,最新版,省着点用",
|
||||||
describe: "谷歌多模态,图像识别",
|
available: true,
|
||||||
provider: {
|
provider: {
|
||||||
id: "google",
|
id: "openai",
|
||||||
providerName: "Google",
|
providerName: "OpenAI",
|
||||||
providerType: "google",
|
providerType: "openai",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: StoreKey.Config,
|
name: StoreKey.Config,
|
||||||
version: 3.8996,
|
version: 3.8997,
|
||||||
migrate(persistedState, version) {
|
migrate(persistedState, version) {
|
||||||
const state = persistedState as ChatConfig;
|
const state = persistedState as ChatConfig;
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore(
|
|||||||
if (version < 3.8) {
|
if (version < 3.8) {
|
||||||
state.lastUpdate = Date.now();
|
state.lastUpdate = Date.now();
|
||||||
}
|
}
|
||||||
if (version < 3.8996) {
|
if (version < 3.8997) {
|
||||||
state.lastUpdate = Date.now();
|
state.lastUpdate = Date.now();
|
||||||
return { ...DEFAULT_CONFIG };
|
return { ...DEFAULT_CONFIG };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user