mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
添加微软gpt-4o
This commit is contained in:
parent
941f40afb5
commit
4b1fcdac0d
@ -215,18 +215,19 @@ export const DEFAULT_MODELS = [
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// name: "gpt-4-turbo",
|
||||
// available: true,
|
||||
// provider: {
|
||||
// id: "openai",
|
||||
// providerName: "OpenAI",
|
||||
// providerType: "openai",
|
||||
// },
|
||||
// },
|
||||
{
|
||||
name: "gpt-4-turbo-2024-04-09",
|
||||
describe: "GPT-4,最新版,推荐",
|
||||
name: "gpt-4o",
|
||||
describe: "GPT-4o,最新版,全能,快速,推荐",
|
||||
available: true,
|
||||
provider: {
|
||||
id: "openai",
|
||||
providerName: "OpenAI",
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "gpt-4-turbo-2024-04-09",
|
||||
describe: "GPT-4,标准版",
|
||||
available: true,
|
||||
provider: {
|
||||
id: "openai",
|
||||
@ -234,11 +235,6 @@ export const DEFAULT_MODELS = [
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// name: "gpt-4",
|
||||
// describe: "GPT-4,聪明,贵,慢",
|
||||
// available: false,
|
||||
// },
|
||||
{
|
||||
name: "gpt-35-turbo-0125",
|
||||
describe: "GPT-3,微软,备用",
|
||||
@ -249,16 +245,6 @@ export const DEFAULT_MODELS = [
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "gpt-4-1106-preview",
|
||||
describe: "GPT-4,旧版,备用",
|
||||
available: true,
|
||||
provider: {
|
||||
id: "openai",
|
||||
providerName: "OpenAI",
|
||||
providerType: "openai",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "claude-3-opus-20240229",
|
||||
describe: "claude第三代模型最强版",
|
||||
@ -290,7 +276,7 @@ export const DEFAULT_MODELS = [
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "gpt-4o",
|
||||
name: "gpt-4o-2024-05-13",
|
||||
describe: "GPT-4,最新版,省着点用",
|
||||
available: true,
|
||||
provider: {
|
||||
@ -334,6 +320,7 @@ export const DEFAULT_MODELS = [
|
||||
export const AZURE_MODELS: string[] = [
|
||||
"gpt-35-turbo-0125",
|
||||
"gpt-4-turbo-2024-04-09",
|
||||
"gpt-4o",
|
||||
];
|
||||
// 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`} ));
|
||||
|
@ -14,7 +14,7 @@ export const EN_MASKS: BuiltinMask[] = [
|
||||
},
|
||||
],
|
||||
modelConfig: {
|
||||
model: "gpt-4-1106-preview",
|
||||
model: "gpt-4o",
|
||||
temperature: 0.3,
|
||||
max_tokens: 2000,
|
||||
presence_penalty: 0,
|
||||
|
@ -138,7 +138,7 @@ export const useAppConfig = createPersistStore(
|
||||
}),
|
||||
{
|
||||
name: StoreKey.Config,
|
||||
version: 3.91,
|
||||
version: 3.92,
|
||||
migrate(persistedState, version) {
|
||||
const state = persistedState as ChatConfig;
|
||||
|
||||
@ -174,7 +174,7 @@ export const useAppConfig = createPersistStore(
|
||||
// return { ...DEFAULT_CONFIG };
|
||||
// }
|
||||
|
||||
if (version < 3.91) {
|
||||
if (version < 3.92) {
|
||||
state.modelConfig = DEFAULT_CONFIG.modelConfig;
|
||||
// state.modelConfig.template =
|
||||
// state.modelConfig.template !== DEFAULT_INPUT_TEMPLATE
|
||||
|
Loading…
Reference in New Issue
Block a user