数据库的信息重构为dataclass
This commit is contained in:
@@ -166,8 +166,10 @@ class ChatMood:
|
||||
limit=10,
|
||||
limit_mode="last",
|
||||
)
|
||||
# TODO: 修复!
|
||||
tmp_msgs = [msg.__dict__ for msg in message_list_before_now]
|
||||
chat_talking_prompt = build_readable_messages(
|
||||
message_list_before_now,
|
||||
tmp_msgs,
|
||||
replace_bot_name=True,
|
||||
merge_messages=False,
|
||||
timestamp_mode="normal_no_YMD",
|
||||
@@ -245,8 +247,10 @@ class ChatMood:
|
||||
limit=5,
|
||||
limit_mode="last",
|
||||
)
|
||||
# TODO: 修复!
|
||||
tmp_msgs = [msg.__dict__ for msg in message_list_before_now]
|
||||
chat_talking_prompt = build_readable_messages(
|
||||
message_list_before_now,
|
||||
tmp_msgs,
|
||||
replace_bot_name=True,
|
||||
merge_messages=False,
|
||||
timestamp_mode="normal_no_YMD",
|
||||
|
||||
Reference in New Issue
Block a user