mirror of https://github.com/Mai-with-u/MaiBot.git
fix:修复阈值,降低表达
parent
ec1a7c2ba9
commit
79405d1871
|
|
@ -222,7 +222,7 @@ class RelationshipProcessor(BaseProcessor):
|
|||
"start_time": time.time(),
|
||||
"forget": False,
|
||||
})
|
||||
if len(self.info_fetching_cache) > 30:
|
||||
if len(self.info_fetching_cache) > 20:
|
||||
self.info_fetching_cache.pop(0)
|
||||
else:
|
||||
logger.warning(f"{self.log_prefix} 未找到用户 {person_name} 的ID,跳过调取信息。")
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ class ActionPlanner(BasePlanner):
|
|||
prompt = f"{prompt}"
|
||||
llm_content, (reasoning_content, _) = await self.planner_llm.generate_response_async(prompt=prompt)
|
||||
|
||||
logger.info(f"{self.log_prefix}规划器原始提示词: {prompt}")
|
||||
# logger.info(f"{self.log_prefix}规划器原始提示词: {prompt}")
|
||||
logger.info(f"{self.log_prefix}规划器原始响应: {llm_content}")
|
||||
logger.info(f"{self.log_prefix}规划器推理: {reasoning_content}")
|
||||
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ class DefaultReplyer:
|
|||
# 使用相似度匹配选择最相似的表达
|
||||
similar_exprs = find_similar_expressions(target_message, learnt_style_expressions, 3)
|
||||
for expr in similar_exprs:
|
||||
print(f"expr: {expr}")
|
||||
# print(f"expr: {expr}")
|
||||
if isinstance(expr, dict) and "situation" in expr and "style" in expr:
|
||||
style_habbits.append(f"当{expr['situation']}时,使用 {expr['style']}")
|
||||
# 2. learnt_grammar_expressions加权随机选2条
|
||||
|
|
@ -390,6 +390,8 @@ class DefaultReplyer:
|
|||
|
||||
style_habbits_str = "\n".join(style_habbits)
|
||||
grammar_habbits_str = "\n".join(grammar_habbits)
|
||||
|
||||
|
||||
|
||||
# 关键词检测与反应
|
||||
keywords_reaction_prompt = ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue