feat(affinity_flow_chatter): 增强动作思考过程在回复生成中的集成

添加了将动作思考过程集成到回复生成流程的功能:
- 在 generator_api 中新增逻辑,将 action_data 中的 thinking 字段内容添加到 extra_info
- 优化 plan_filter 中对 thinking 字段的处理逻辑,避免添加无意义的默认值
- 更新默认生成器提示词,移除冗余的关系信息块重复
- 在 planner 提示词中添加不对表情包消息回应的限制
This commit is contained in:
Windpicker-owo
2025-09-24 13:53:54 +08:00
parent 80ecd553df
commit c4162d787a
5 changed files with 14 additions and 3 deletions

View File

@@ -434,8 +434,8 @@ class ChatterPlanFilter:
action_data = {k: v for k, v in single_action_obj.items() if k not in ["action_type", "reason"]}
# 保留原始的thinking字段如果有
thinking = action_json.get("thinking")
if thinking:
thinking = action_json.get("thinking", "")
if thinking and thinking != "未提供思考过程":
action_data["thinking"] = thinking
target_message_obj = None

View File

@@ -53,6 +53,7 @@ def init_prompts():
- **回复消息时必须遵循对话的流程,不要重复已经说过的话。**
- **确保回复与上下文紧密相关,回应要针对用户的消息内容。**
- **保持角色设定的一致性,使用符合你性格的语言风格。**
- **不要对表情包消息做出回应!**
**输出格式:**
请严格按照以下 JSON 格式输出,包含 `thinking` 和 `actions` 字段: