Skip to content

Commit

Permalink
fix(answer/operation): feedback status in the logs (#6716)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin9703 authored Jul 26, 2024
1 parent c6996a4 commit 427f48b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/components/base/chat/chat/answer/operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 427f48b

Please sign in to comment.