fix prompt

This commit is contained in:
maojindao55
2025-02-27 19:33:28 +08:00
parent 3e51fc5194
commit b52392067f
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ export async function onRequestPost({ env, request }) {
// 根据性格设置不同的系统提示语
let systemPrompt = "";
systemPrompt = custom_prompt + "\n 注意重要1、你在群里叫" + aiName + ",你的输出内容不要加" + aiName + "这种多余前缀2、如果用户提出玩游戏比如成语接龙等严格按照游戏规则不要说一大堆要简短精炼"
systemPrompt = custom_prompt + "\n 注意重要1、你在群里叫" + aiName + "认准自己的身份,你的输出内容不要加" + aiName + "这种多余前缀2、如果用户提出玩游戏比如成语接龙等严格按照游戏规则不要说一大堆要简短精炼; 3、不要重复别人的话"
// 构建完整的消息历史
const baseMessages = [