恢复可用性
This commit is contained in:
@@ -100,7 +100,8 @@ class ChatMood:
|
||||
limit_mode="last",
|
||||
)
|
||||
# TODO: 修复!
|
||||
tmp_msgs = [msg.__dict__ for msg in message_list_before_now]
|
||||
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,
|
||||
replace_bot_name=True,
|
||||
@@ -151,7 +152,8 @@ class ChatMood:
|
||||
limit_mode="last",
|
||||
)
|
||||
# TODO: 修复
|
||||
tmp_msgs = [msg.__dict__ for msg in message_list_before_now]
|
||||
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,
|
||||
replace_bot_name=True,
|
||||
|
||||
Reference in New Issue
Block a user