数据库的信息重构为dataclass
This commit is contained in:
@@ -99,8 +99,10 @@ class ChatMood:
|
||||
limit=int(global_config.chat.max_context_size / 3),
|
||||
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",
|
||||
@@ -148,8 +150,10 @@ class ChatMood:
|
||||
limit=15,
|
||||
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