fix:修复intwenti

This commit is contained in:
SengokuCola
2025-06-25 21:48:17 +08:00
parent 3bcb173e64
commit 337e9cb9a4
3 changed files with 118 additions and 26 deletions

View File

@@ -148,7 +148,7 @@ class ExpressionSelector:
expr["count"] = new_count
expr["last_active_time"] = time.time()
logger.info(f"表达方式激活: 原count={current_count:.2f}, 增量={increment}, 新count={new_count:.2f}")
# logger.info(f"表达方式激活: 原count={current_count:.2f}, 增量={increment}, 新count={new_count:.2f}")
break
# 保存更新后的文件

View File

@@ -135,7 +135,7 @@ class PromptBuilder:
if global_config.relationship.enable_relationship:
for person in who_chat_in_group:
relationship_manager = get_relationship_manager()
relation_prompt += await relationship_manager.build_relationship_info(person)
relation_prompt += f"{await relationship_manager.build_relationship_info(person)}\n"
mood_prompt = mood_manager.get_mood_prompt()
@@ -170,7 +170,7 @@ class PromptBuilder:
message_list_before_now_half = get_raw_msg_before_timestamp_with_chat(
chat_id=chat_stream.stream_id,
timestamp=time.time(),
limit=global_config.focus_chat.observation_context_size * 0.5,
limit=int(global_config.focus_chat.observation_context_size * 0.5),
)
chat_talking_prompt_half = build_readable_messages(
message_list_before_now_half,