From 6d60fb3045c25577d36af66597efbe2da29f4e6a Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Wed, 4 Nov 2026 10:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=8A=E5=A4=A9=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=8A=A0=E8=BD=BD=E5=8D=A0=E4=BD=8D=E7=9A=84=E7=BD=91?= =?UTF-8?q?=E5=85=B3=E9=94=99=E8=AF=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/canvas/CanvasChatPanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/canvas/CanvasChatPanel.tsx b/components/canvas/CanvasChatPanel.tsx index 886fb4f33..58efc189b 100644 --- a/components/canvas/CanvasChatPanel.tsx +++ b/components/canvas/CanvasChatPanel.tsx @@ -66,6 +66,7 @@ import { import { toast } from "sonner"; import { useCanvasStore } from "@/store/canvas"; import { cn } from "@/lib/utils"; +import { getGatewayErrorPageMessage } from "@/lib/request-error"; import { fetcher, fetchWithErrorHandlers, generateUUID } from "@/lib/utils"; import { fetchUploadWithRetry, @@ -373,7 +374,9 @@ function MarkdownResponseFallback({ }: Pick) { return (
- {children} + {typeof children === "string" + ? getGatewayErrorPageMessage(children) || children + : children}
); } -- 2.47.2