支持多群聊&UI改版

This commit is contained in:
maojindao55
2025-03-01 00:34:17 +08:00
parent fcf0a00370
commit 8f29f9a293
14 changed files with 1311 additions and 225 deletions

View File

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