Ver Fonte

Update chat.tsx

Algorithm5838 há 1 ano atrás
pai
commit
6a61fe5776
1 ficheiros alterados com 7 adições e 1 exclusões
  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>