Merge pull request #861 from Dax233/dev

修复 PFC 中 "调用 ReplyChecker 时错误: 0" 的问题
pull/862/head
墨梓柒 2025-04-27 13:26:01 +08:00 committed by GitHub
commit 40f704c0b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class Conversation:
# 2. 检查回复
self.state = ConversationState.CHECKING
try:
current_goal_str = conversation_info.goal_list[0][0] if conversation_info.goal_list else ""
current_goal_str = conversation_info.goal_list[0]["goal"] if conversation_info.goal_list else ""
# 注意:这里传递的是 reply_attempt_count - 1 作为 retry_count 给 checker
is_suitable, check_reason, need_replan = await self.reply_generator.check_reply(
reply=self.generated_reply,