Kaynağa Gözat

Update chat.tsx

Algorithm5838 1 yıl önce
ebeveyn
işleme
6a61fe5776
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      app/components/chat.tsx

+ 7 - 1
app/components/chat.tsx

@@ -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>