diff --git a/doc/~$帝视角”软件设计规格说明书.docx b/doc/~$帝视角”软件设计规格说明书.docx deleted file mode 100644 index 5b26998..0000000 Binary files a/doc/~$帝视角”软件设计规格说明书.docx and /dev/null differ diff --git a/doc/“上帝视角”软件设计规格说明书.docx b/doc/“上帝视角”软件设计规格说明书.docx index 6551cc9..1edde61 100644 Binary files a/doc/“上帝视角”软件设计规格说明书.docx and b/doc/“上帝视角”软件设计规格说明书.docx differ diff --git a/src/oc-community-frontend/src/components/ChatWindow.vue b/src/oc-community-frontend/src/components/ChatWindow.vue index 2625264..e404ffd 100644 --- a/src/oc-community-frontend/src/components/ChatWindow.vue +++ b/src/oc-community-frontend/src/components/ChatWindow.vue @@ -258,7 +258,7 @@ const performAIReply = async (batchId, userText) => { const c = props.activeContact const safe = (v) => (v === null || v === undefined) ? '' : String(v).replace(/\s+/g, ' ').trim() const fmtList = (v) => Array.isArray(v) ? v.join('、') : (v ? safe(v) : '') - persona += `你是一个真人网友,名字是${safe(c.name) || '匿名'},回复风格友好、简短。`; + persona += `你是一个真人网友,名字是${safe(c.name) || '匿名'},回复风格正常、简短。`; const fields = [ ['性别', c.gender || (c.genderOther ? c.genderOther : '')], ['生日', c.birthday], @@ -271,7 +271,7 @@ const performAIReply = async (batchId, userText) => { }) } - const prompt = `${persona}\n\n以下是最近的聊天记录:\n${conversationContext}\n\n请用轻松的口吻、最多20字回复最后一条用户消息(不要重复用户的话)。用户最后一句话:\n${userText}` + const prompt = `${persona}\n\n以下是最近的聊天记录:\n${conversationContext}\n\n请用符合你人设性格的口吻、最多20字回复最后一条用户消息(不要重复用户的话)。用户最后一句话:\n${userText}` const res = await axios.post('https://open.bigmodel.cn/api/paas/v4/chat/completions', { model: 'glm-4-flash',