refactor: 将多个方法修改为静态方法以提高代码可读性和一致性

This commit is contained in:
春河晴
2025-04-17 15:39:49 +09:00
parent 73da67fce8
commit dc96e26ca5
37 changed files with 248 additions and 174 deletions

View File

@@ -161,7 +161,8 @@ class ChattingObservation(Observation):
# print(f"prompt{prompt}")
# print(f"self.observe_info{self.observe_info}")
def translate_message_list_to_str(self, talking_message):
@staticmethod
def translate_message_list_to_str(talking_message):
talking_message_str = ""
for message in talking_message:
talking_message_str += message["detailed_plain_text"]