session message should exclude all error tips

This commit is contained in:
cyhhao
2023-04-03 14:13:57 +08:00
parent 43b632fc71
commit 17cfea7f1f
3 changed files with 19 additions and 9 deletions

View File

@@ -513,7 +513,10 @@ export function Chat(props: {
bordered
title={Locale.Chat.Actions.Export}
onClick={() => {
exportMessages(session.messages, session.topic);
exportMessages(
session.messages.filter((msg) => !msg.isError),
session.topic,
);
}}
/>
</div>