diff --git a/service/src/storage/config.ts b/service/src/storage/config.ts index 37b3c796..38cf71a4 100644 --- a/service/src/storage/config.ts +++ b/service/src/storage/config.ts @@ -32,7 +32,7 @@ export async function getOriginConfig() { process.env.OPENAI_API_DISABLE_DEBUG === 'true', process.env.OPENAI_ACCESS_TOKEN, process.env.OPENAI_API_BASE_URL, - process.env.OPENAI_API_MODEL === 'ChatGPTUnofficialProxyAPI' ? 'ChatGPTUnofficialProxyAPI' : 'ChatGPTAPI', + 'ChatGPTAPI', process.env.API_REVERSE_PROXY, (process.env.SOCKS_PROXY_HOST && process.env.SOCKS_PROXY_PORT) ? (`${process.env.SOCKS_PROXY_HOST}:${process.env.SOCKS_PROXY_PORT}`) @@ -76,12 +76,6 @@ export async function getOriginConfig() { if (config.siteConfig.registerReview === undefined) config.siteConfig.registerReview = process.env.REGISTER_REVIEW === 'true' } - if (config.apiModel !== 'ChatGPTAPI' && config.apiModel !== 'ChatGPTUnofficialProxyAPI') { - if (isNotEmptyString(config.accessToken)) - config.apiModel = 'ChatGPTUnofficialProxyAPI' - else - config.apiModel = 'ChatGPTAPI' - } if (config.auditConfig === undefined) { config.auditConfig = new AuditConfig( @@ -102,7 +96,7 @@ export async function getOriginConfig() { if (!config.advancedConfig) { config.advancedConfig = new AdvancedConfig( - 'You are ChatGPT, a large language model trained by OpenAI. Follow the user\'s instructions carefully.Respond using markdown (latex start with $).', + 'You are a large language model. Follow the user\'s instructions carefully. Respond using markdown (latex start with $).', 0.8, 1, 20, diff --git a/src/store/modules/settings/helper.ts b/src/store/modules/settings/helper.ts index 0533392f..6b80fd18 100644 --- a/src/store/modules/settings/helper.ts +++ b/src/store/modules/settings/helper.ts @@ -10,7 +10,7 @@ export interface SettingsState { export function defaultSetting(): SettingsState { return { - systemMessage: 'You are ChatGPT, a large language model trained by OpenAI. Follow the user\'s instructions carefully. Respond using markdown.', + systemMessage: 'You are a large language model. Follow the user\'s instructions carefully. Respond using markdown(latex start with $).', temperature: 0.8, top_p: 1, } diff --git a/src/store/modules/user/helper.ts b/src/store/modules/user/helper.ts index a44aa175..9af78692 100644 --- a/src/store/modules/user/helper.ts +++ b/src/store/modules/user/helper.ts @@ -38,7 +38,7 @@ export function defaultSetting(): UserState { config: { chatModel: 'gpt-3.5-turbo' }, roles: [], advanced: { - systemMessage: 'You are ChatGPT, a large language model trained by OpenAI. Follow the user\'s instructions carefully. Respond using markdown.', + systemMessage: 'You are a large language model. Follow the user\'s instructions carefully. Respond using markdown (latex start with $).', temperature: 0.8, top_p: 1, maxContextCount: 20, @@ -57,7 +57,7 @@ export function getLocalState(): UserState { } if (!localSetting.userInfo.advanced) { localSetting.userInfo.advanced = { - systemMessage: 'You are ChatGPT, a large language model trained by OpenAI. Follow the user\'s instructions carefully. Respond using markdown.', + systemMessage: 'You are a large language model. Follow the user\'s instructions carefully. Respond using markdown (latex start with $).', temperature: 0.8, top_p: 1, maxContextCount: 20,