mirror of https://github.com/Mai-with-u/MaiBot.git
Update private_generator.py
parent
f893e02d16
commit
bc9aee9a00
|
|
@ -216,25 +216,25 @@ class PrivateReplyer:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
return False, llm_response
|
return False, llm_response
|
||||||
|
|
||||||
# async def build_relation_info(self, chat_content: str, sender: str):
|
async def build_relation_info(self, chat_content: str, sender: str):
|
||||||
# if not global_config.relationship.enable_relationship:
|
if not global_config.relationship.enable_relationship:
|
||||||
# return ""
|
return ""
|
||||||
|
|
||||||
# if not sender:
|
if not sender:
|
||||||
# return ""
|
return ""
|
||||||
|
|
||||||
# if sender == global_config.bot.nickname:
|
if sender == global_config.bot.nickname:
|
||||||
# return ""
|
return ""
|
||||||
|
|
||||||
# # 获取用户ID
|
# 获取用户ID
|
||||||
# person = Person(person_name=sender)
|
person = Person(person_name=sender)
|
||||||
# if not is_person_known(person_name=sender):
|
if not is_person_known(person_name=sender):
|
||||||
# logger.warning(f"未找到用户 {sender} 的ID,跳过信息提取")
|
logger.warning(f"未找到用户 {sender} 的ID,跳过信息提取")
|
||||||
# return f"你完全不认识{sender},不理解ta的相关信息。"
|
return f"你完全不认识{sender},不理解ta的相关信息。"
|
||||||
|
|
||||||
# sender_relation = await person.build_relationship(chat_content)
|
sender_relation = await person.build_relationship(chat_content)
|
||||||
|
|
||||||
# return f"{sender_relation}"
|
return f"{sender_relation}"
|
||||||
|
|
||||||
async def build_expression_habits(self, chat_history: str, target: str) -> Tuple[str, List[int]]:
|
async def build_expression_habits(self, chat_history: str, target: str) -> Tuple[str, List[int]]:
|
||||||
# sourcery skip: for-append-to-extend
|
# sourcery skip: for-append-to-extend
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue