refactor(chat): 将用户引用处理从同步改为异步,优化性能

This commit is contained in:
Windpicker-owo
2025-11-03 23:11:49 +08:00
parent 87d2485f2c
commit b97470cf60
4 changed files with 56 additions and 26 deletions

View File

@@ -1086,9 +1086,6 @@ class Prompt:
Returns:
str: 格式化后的关系信息字符串,或在失败时返回空字符串。
"""
if not global_config.affinity_flow.enable_relationship_tracking:
return ""
from src.person_info.relationship_fetcher import relationship_fetcher_manager
relationship_fetcher = relationship_fetcher_manager.get_fetcher(chat_id)