fix:修改模型名称,移除chat_mind处理器
This commit is contained in:
@@ -17,8 +17,8 @@ class ImpressionUpdateTask(AsyncTask):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
task_name="impression_update",
|
||||
wait_before_start=10, # 启动后等待10秒
|
||||
run_interval=30 # 每1分钟运行一次
|
||||
wait_before_start=2, # 启动后等待10秒
|
||||
run_interval=20 # 每1分钟运行一次
|
||||
)
|
||||
|
||||
async def run(self):
|
||||
@@ -27,7 +27,7 @@ class ImpressionUpdateTask(AsyncTask):
|
||||
|
||||
# 获取最近10分钟的消息
|
||||
current_time = int(time.time())
|
||||
start_time = current_time - 600 # 10分钟前
|
||||
start_time = current_time - 6000 # 10分钟前
|
||||
logger.debug(f"获取时间范围: {start_time} -> {current_time}")
|
||||
|
||||
# 获取所有消息
|
||||
|
||||
@@ -320,19 +320,19 @@ class RelationshipManager:
|
||||
|
||||
messages_before = get_raw_msg_by_timestamp_with_chat(
|
||||
chat_id=chat_id,
|
||||
timestamp_start=timestamp - 600, # 前10分钟
|
||||
timestamp_start=timestamp - 6000, # 前10分钟
|
||||
timestamp_end=timestamp,
|
||||
# person_ids=[user_id],
|
||||
limit=200,
|
||||
limit=100,
|
||||
limit_mode="latest"
|
||||
)
|
||||
|
||||
messages_after = get_raw_msg_by_timestamp_with_chat(
|
||||
chat_id=chat_id,
|
||||
timestamp_start=timestamp,
|
||||
timestamp_end=timestamp + 600, # 后10分钟
|
||||
timestamp_end=timestamp + 6000, # 后10分钟
|
||||
# person_ids=[user_id],
|
||||
limit=200,
|
||||
limit=100,
|
||||
limit_mode="earliest"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user