perf: 默认 systemMessage

This commit is contained in:
ChenZhaoYu 2023-03-31 13:42:16 +08:00
parent 40fa028408
commit b241240fc6
1 changed files with 1 additions and 2 deletions

View File

@ -7,9 +7,8 @@ export interface SettingsState {
} }
export function defaultSetting(): SettingsState { export function defaultSetting(): SettingsState {
const currentDate = new Date().toISOString().split('T')[0]
return { return {
systemMessage: `You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\nKnowledge cutoff: 2021-09-01\nCurrent date: ${currentDate}`, systemMessage: 'You are ChatGPT, a large language model trained by OpenAI. Follow the user\'s instructions carefully. Respond using markdown.',
} }
} }