Feat: Exclude reference from the data returned by the conversation/get interface #3909 (#3962)

### What problem does this PR solve?

Feat: Exclude reference from the data returned by the conversation/get
interface #3909

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-10 16:46:47 +08:00
committed by GitHub
parent fc4e644e5f
commit 601d74160b
3 changed files with 8 additions and 12 deletions

View File

@ -39,7 +39,7 @@ const MessageItem = ({
item,
reference,
loading = false,
avatar = '',
avatar,
sendLoading = false,
clickDocumentButton,
index,
@ -102,13 +102,7 @@ const MessageItem = ({
})}
>
{item.role === MessageType.User ? (
<Avatar
size={40}
src={
avatar ??
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png'
}
/>
<Avatar size={40} src={avatar ?? '/logo.svg'} />
) : (
<AssistantIcon></AssistantIcon>
)}