소스 검색

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,
     content: messageContent,
     annotation,
     annotation,
     feedback,
     feedback,
+    adminFeedback,
     agent_thoughts,
     agent_thoughts,
   } = item
   } = item
   const hasAnnotation = !!annotation?.id
   const hasAnnotation = !!annotation?.id
-  const [localFeedback, setLocalFeedback] = useState(feedback)
+  const [localFeedback, setLocalFeedback] = useState(config?.supportAnnotation ? adminFeedback : feedback)
 
 
   const content = useMemo(() => {
   const content = useMemo(() => {
     if (agent_thoughts?.length)
     if (agent_thoughts?.length)