Update chat.tsx

This commit is contained in:
Algorithm5838
2023-09-26 20:45:09 +03:00
committed by GitHub
parent 9835206452
commit 6a61fe5776

View File

@@ -1155,7 +1155,13 @@ function _Chat() {
{isUser ? (
<Avatar avatar={config.avatar} />
) : (
<MaskAvatar mask={session.mask} />
<>
{["system", "context"].includes(message.role) ? (
<Avatar avatar="2699-fe0f" />
) : (
<MaskAvatar mask={session.mask} />
)}
</>
)}
</div>