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}
); }