fix(ai_chat): 调整限制长度

This commit is contained in:
ClovertaTheTrilobita 2025-12-15 02:56:25 +00:00
parent 68cfbb3972
commit 995f825f54

View file

@ -238,7 +238,7 @@ class GroupChatRole(Model):
if len(history.role_chat_history) > 5: if len(history.role_chat_history) > 5:
history.role_chat_history.pop(2) history.role_chat_history.pop(2)
data = {"role": "system", "content": "你现在在qq群聊聊天回复一定要口语化这非常重要回复尽可能在10字以内禁止超出50字。"} data = {"role": "system", "content": "你现在在qq群聊聊天回复一定要口语化这非常重要回复尽可能在30字以内"}
history.role_chat_history.append(data) history.role_chat_history.append(data)
print(history.role_chat_history) print(history.role_chat_history)
await history.save() await history.save()