['0']['components'];
type DBGPTView = {
name: string;
@@ -160,9 +160,7 @@ function ChatContent({ children, content, isChartChat, onLinkClick }: PropsWithC
)}
{/* Markdown */}
{isRobot && typeof context === 'string' && (
-
- {formatMarkdownVal(value)}
-
+ {formatMarkdownVal(value)}
)}
{!!relations?.length && (
diff --git a/web/components/chat/chat-content/vis-code.tsx b/web/components/chat/chat-content/vis-code.tsx
index 4048e02fb..f218c5e71 100644
--- a/web/components/chat/chat-content/vis-code.tsx
+++ b/web/components/chat/chat-content/vis-code.tsx
@@ -1,4 +1,4 @@
-import { MarkdownVis } from '@antv/gpt-vis';
+import { GPTVis } from '@antv/gpt-vis';
import remarkGfm from 'remark-gfm';
import markdownComponents from './config';
import { CodePreview } from './code-preview';
@@ -57,9 +57,9 @@ function VisCode({ data }: Props) {
-
+
{data.log}
-
+
diff --git a/web/components/chat/chat-content/vis-plugin.tsx b/web/components/chat/chat-content/vis-plugin.tsx
index 5732e9b78..f6615b917 100644
--- a/web/components/chat/chat-content/vis-plugin.tsx
+++ b/web/components/chat/chat-content/vis-plugin.tsx
@@ -1,7 +1,7 @@
import { CheckOutlined, ClockCircleOutlined, CloseOutlined, LoadingOutlined } from '@ant-design/icons';
import classNames from 'classnames';
import { ReactNode } from 'react';
-import { MarkdownVis } from '@antv/gpt-vis';
+import { GPTVis } from '@antv/gpt-vis';
import markdownComponents from './config';
import rehypeRaw from 'rehype-raw';
@@ -50,9 +50,9 @@ function VisPlugin({ data }: Props) {
{data.result ? (
-
+
{data.result ?? ''}
-
+
) : (
{data.err_msg}