附属函数参数修改
This commit is contained in:
@@ -99,11 +99,9 @@ class ChatMood:
|
||||
limit=int(global_config.chat.max_context_size / 3),
|
||||
limit_mode="last",
|
||||
)
|
||||
# TODO: 修复!
|
||||
from src.common.data_models import temporarily_transform_class_to_dict
|
||||
tmp_msgs = [temporarily_transform_class_to_dict(msg) for msg in message_list_before_now]
|
||||
|
||||
chat_talking_prompt = build_readable_messages(
|
||||
tmp_msgs,
|
||||
message_list_before_now,
|
||||
replace_bot_name=True,
|
||||
timestamp_mode="normal_no_YMD",
|
||||
read_mark=0.0,
|
||||
@@ -150,11 +148,9 @@ class ChatMood:
|
||||
limit=15,
|
||||
limit_mode="last",
|
||||
)
|
||||
# TODO: 修复
|
||||
from src.common.data_models import temporarily_transform_class_to_dict
|
||||
tmp_msgs = [temporarily_transform_class_to_dict(msg) for msg in message_list_before_now]
|
||||
|
||||
chat_talking_prompt = build_readable_messages(
|
||||
tmp_msgs,
|
||||
message_list_before_now,
|
||||
replace_bot_name=True,
|
||||
timestamp_mode="normal_no_YMD",
|
||||
read_mark=0.0,
|
||||
|
||||
Reference in New Issue
Block a user