fix:修正系数,正确处理reply——to,优化s4u的prompt

This commit is contained in:
SengokuCola
2025-07-16 12:06:24 +08:00
parent bafeb3f25c
commit e2ce6a14f4
5 changed files with 36 additions and 21 deletions

View File

@@ -115,17 +115,18 @@ class ReplyAction(BaseAction):
# 构建回复文本
reply_text = ""
first_replied = False
reply_to_platform_id = f"{platform}:{user_id}"
for reply_seg in reply_set:
data = reply_seg[1]
if not first_replied:
if need_reply:
await self.send_text(content=data, reply_to=reply_to, typing=False)
await self.send_text(content=data, reply_to=reply_to, reply_to_platform_id=reply_to_platform_id, typing=False)
first_replied = True
else:
await self.send_text(content=data, typing=False)
await self.send_text(content=data, reply_to_platform_id=reply_to_platform_id, typing=False)
first_replied = True
else:
await self.send_text(content=data, typing=True)
await self.send_text(content=data, reply_to_platform_id=reply_to_platform_id, typing=True)
reply_text += data
# 存储动作记录