(feature)(webapp) add multiple parse infos in history message (#256)

Co-authored-by: williamhliu <williamhliu@tencent.com>
This commit is contained in:
williamhliu
2023-10-18 17:26:43 +08:00
committed by GitHub
parent 7acdf9cb3d
commit 65614ed3ba
12 changed files with 58 additions and 129 deletions

View File

@@ -165,7 +165,7 @@ const Chat: ForwardRefRenderFunction<any, Props> = (
{
id: uuid(),
type: MessageTypeEnum.AGENT_LIST,
msg: agent?.name || currentAgent?.name || agentList?.[0].name,
msg: agent?.name || currentAgent?.name || agentList?.[0]?.name,
},
]);
};
@@ -175,6 +175,7 @@ const Chat: ForwardRefRenderFunction<any, Props> = (
id: item.questionId,
type: MessageTypeEnum.QUESTION,
msg: item.queryText,
parseInfos: item.parseInfos,
msgData: item.queryResult,
score: item.score,
agentId: currentAgent?.id,