Merge pull request #401 from cyhhao/pr2

fix: context message should exclude all error tips
This commit is contained in:
Yifei Zhang
2023-04-03 14:26:32 +08:00
committed by GitHub
3 changed files with 19 additions and 9 deletions

View File

@@ -507,7 +507,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>