浏览代码

fix(answer/operation): feedback status in the logs (#6716)

Kevin9703 9 月之前
父节点
当前提交
427f48be6b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      web/app/components/base/chat/chat/answer/operation.tsx

+ 2 - 1
web/app/components/base/chat/chat/answer/operation.tsx

@@ -53,10 +53,11 @@ const Operation: FC<OperationProps> = ({
     content: messageContent,
     annotation,
     feedback,
+    adminFeedback,
     agent_thoughts,
   } = item
   const hasAnnotation = !!annotation?.id
-  const [localFeedback, setLocalFeedback] = useState(feedback)
+  const [localFeedback, setLocalFeedback] = useState(config?.supportAnnotation ? adminFeedback : feedback)
 
   const content = useMemo(() => {
     if (agent_thoughts?.length)