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

This commit is contained in:
Kevin9703 2024-07-26 17:36:36 +08:00 committed by GitHub
parent c6996a48a4
commit 427f48be6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)