mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(ai_chat): 调整限制长度
This commit is contained in:
parent
68cfbb3972
commit
995f825f54
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue