mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
fix: ts (#2621)
This commit is contained in:
@@ -32,11 +32,8 @@ const RenderOutput = () => {
|
|||||||
<AIResponseBox
|
<AIResponseBox
|
||||||
key={key}
|
key={key}
|
||||||
value={value}
|
value={value}
|
||||||
index={i}
|
|
||||||
chat={histories[1]}
|
|
||||||
isLastChild={true}
|
isLastChild={true}
|
||||||
isChatting={isChatting}
|
isChatting={isChatting}
|
||||||
questionGuides={[]}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
import Markdown from '@/components/Markdown';
|
import Markdown from '@/components/Markdown';
|
||||||
import { CodeClassNameEnum } from '@/components/Markdown/utils';
|
|
||||||
import {
|
import {
|
||||||
Accordion,
|
Accordion,
|
||||||
AccordionButton,
|
AccordionButton,
|
||||||
@@ -17,7 +16,7 @@ import {
|
|||||||
ToolModuleResponseItemType,
|
ToolModuleResponseItemType,
|
||||||
UserChatItemValueItemType
|
UserChatItemValueItemType
|
||||||
} from '@fastgpt/global/core/chat/type';
|
} from '@fastgpt/global/core/chat/type';
|
||||||
import React, { useMemo } from 'react';
|
import React from 'react';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import Avatar from '@fastgpt/web/components/common/Avatar';
|
import Avatar from '@fastgpt/web/components/common/Avatar';
|
||||||
import { SendPromptFnType } from '../ChatContainer/ChatBox/type';
|
import { SendPromptFnType } from '../ChatContainer/ChatBox/type';
|
||||||
@@ -31,7 +30,7 @@ type props = {
|
|||||||
value: UserChatItemValueItemType | AIChatItemValueItemType;
|
value: UserChatItemValueItemType | AIChatItemValueItemType;
|
||||||
isLastChild: boolean;
|
isLastChild: boolean;
|
||||||
isChatting: boolean;
|
isChatting: boolean;
|
||||||
onSendMessage: SendPromptFnType;
|
onSendMessage?: SendPromptFnType;
|
||||||
};
|
};
|
||||||
|
|
||||||
const RenderText = React.memo(function RenderText({
|
const RenderText = React.memo(function RenderText({
|
||||||
@@ -139,7 +138,7 @@ const RenderInteractive = React.memo(
|
|||||||
}: {
|
}: {
|
||||||
isChatting: boolean;
|
isChatting: boolean;
|
||||||
interactive: InteractiveNodeResponseItemType;
|
interactive: InteractiveNodeResponseItemType;
|
||||||
onSendMessage: SendPromptFnType;
|
onSendMessage?: SendPromptFnType;
|
||||||
chatHistories: ChatSiteItemType[];
|
chatHistories: ChatSiteItemType[];
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user