Check the output links are hallucinations from AI (#139)

* feat: check output links if a hallucination from AI
This commit is contained in:
JeffJiang
2025-05-15 10:39:53 +08:00
committed by GitHub
parent 25e7b86f02
commit bf4820c68f
6 changed files with 88 additions and 14 deletions
@@ -13,10 +13,12 @@ import { cn } from "~/lib/utils";
export function ResearchReportBlock({
className,
messageId,
editing,
}: {
className?: string;
researchId: string;
messageId: string;
editing: boolean;
}) {
const message = useMessage(messageId);
const { isReplay } = useReplay();
@@ -55,7 +57,7 @@ export function ResearchReportBlock({
ref={contentRef}
className={cn("relative flex flex-col pt-4 pb-8", className)}
>
{!isReplay && isCompleted ? (
{!isReplay && isCompleted && editing ? (
<ReportEditor
content={message?.content}
onMarkdownChange={handleMarkdownChange}