mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
删除掉没用的模型
This commit is contained in:
parent
700cb5e95f
commit
402d6b9664
@ -125,7 +125,7 @@ Latex inline: \\(x^2\\)
|
|||||||
Latex block: $$e=mc^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 GEMINI_SUMMARIZE_MODEL = "gemini-pro";
|
||||||
|
|
||||||
export const KnowledgeCutOffDate: Record<string, string> = {
|
export const KnowledgeCutOffDate: Record<string, string> = {
|
||||||
@ -206,7 +206,7 @@ const anthropicModels = [
|
|||||||
|
|
||||||
export const DEFAULT_MODELS = [
|
export const DEFAULT_MODELS = [
|
||||||
{
|
{
|
||||||
name: "gpt-3.5-turbo-0125",
|
name: "gpt-3.5-turbo",
|
||||||
describe: "GPT-3,质量一般,便宜",
|
describe: "GPT-3,质量一般,便宜",
|
||||||
available: true,
|
available: true,
|
||||||
provider: {
|
provider: {
|
||||||
@ -235,16 +235,16 @@ export const DEFAULT_MODELS = [
|
|||||||
providerType: "openai",
|
providerType: "openai",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "gpt-35-turbo-0125",
|
// name: "gpt-35-turbo-0125",
|
||||||
describe: "GPT-3,微软,备用",
|
// describe: "GPT-3,微软,备用",
|
||||||
available: true,
|
// available: true,
|
||||||
provider: {
|
// provider: {
|
||||||
id: "openai",
|
// id: "openai",
|
||||||
providerName: "OpenAI",
|
// providerName: "OpenAI",
|
||||||
providerType: "openai",
|
// providerType: "openai",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: "claude-3-opus-20240229",
|
name: "claude-3-opus-20240229",
|
||||||
describe: "claude第三代模型最强版",
|
describe: "claude第三代模型最强版",
|
||||||
@ -255,16 +255,16 @@ export const DEFAULT_MODELS = [
|
|||||||
providerType: "openai",
|
providerType: "openai",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "gpt-4-vision-preview",
|
// name: "gpt-4-vision-preview",
|
||||||
available: true,
|
// available: true,
|
||||||
describe: "GPT-4多模态,图像识别",
|
// describe: "GPT-4多模态,图像识别",
|
||||||
provider: {
|
// provider: {
|
||||||
id: "openai",
|
// id: "openai",
|
||||||
providerName: "OpenAI",
|
// providerName: "OpenAI",
|
||||||
providerType: "openai",
|
// providerType: "openai",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: "gemini-1.5-pro-latest",
|
name: "gemini-1.5-pro-latest",
|
||||||
available: true,
|
available: true,
|
||||||
@ -318,7 +318,7 @@ export const DEFAULT_MODELS = [
|
|||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export const AZURE_MODELS: string[] = [
|
export const AZURE_MODELS: string[] = [
|
||||||
"gpt-35-turbo-0125",
|
//"gpt-35-turbo-0125",
|
||||||
"gpt-4-turbo-2024-04-09",
|
"gpt-4-turbo-2024-04-09",
|
||||||
"gpt-4o",
|
"gpt-4o",
|
||||||
];
|
];
|
||||||
|
@ -33,7 +33,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -59,7 +59,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -85,7 +85,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -111,7 +111,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -143,7 +143,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 0.5,
|
temperature: 0.5,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -169,7 +169,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -202,7 +202,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
@ -235,7 +235,7 @@ export const CN_MASKS: BuiltinMask[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-35-turbo-0125",
|
model: "gpt-3.5-turbo",
|
||||||
temperature: 1,
|
temperature: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
|
@ -138,7 +138,7 @@ export const useAppConfig = createPersistStore(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: StoreKey.Config,
|
name: StoreKey.Config,
|
||||||
version: 3.92,
|
version: 3.93,
|
||||||
migrate(persistedState, version) {
|
migrate(persistedState, version) {
|
||||||
const state = persistedState as ChatConfig;
|
const state = persistedState as ChatConfig;
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ export const useAppConfig = createPersistStore(
|
|||||||
// return { ...DEFAULT_CONFIG };
|
// return { ...DEFAULT_CONFIG };
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (version < 3.92) {
|
if (version < 3.93) {
|
||||||
state.modelConfig = DEFAULT_CONFIG.modelConfig;
|
state.modelConfig = DEFAULT_CONFIG.modelConfig;
|
||||||
// state.modelConfig.template =
|
// state.modelConfig.template =
|
||||||
// state.modelConfig.template !== DEFAULT_INPUT_TEMPLATE
|
// state.modelConfig.template !== DEFAULT_INPUT_TEMPLATE
|
||||||
|
Loading…
Reference in New Issue
Block a user