feat:优化重复思考,表情现在一次选所有

This commit is contained in:
SengokuCola
2026-04-04 01:48:52 +08:00
parent f807295653
commit 97fb4cb36f
2 changed files with 39 additions and 54 deletions

View File

@@ -134,8 +134,8 @@ class MaisakaReasoningEngine:
reasoning_content = response.content or ""
if self._should_replace_reasoning(reasoning_content):
response.content = "让我根据新情况重新思考:"
response.raw_message.content = "让我根据新情况重新思考:"
response.content = "我应该根据我上面思考的内容进行反思,重新思考我下一步的行动,我需要分析当前场景,对话,以及我可以使用的工具,然后先输出想法再使用工具"
response.raw_message.content = "我应该根据我上面思考的内容进行反思,重新思考我下一步的行动,我需要分析当前场景,对话,以及我可以使用的工具,然后先输出想法再使用工具"
logger.info(f"{self._runtime.log_prefix} 当前思考与上一轮过于相似,已替换为重新思考提示")
self._last_reasoning_content = reasoning_content