Przeglądaj źródła

fix: Fixed an issue where the sample of the reply content was displayed out of order

李超 1 rok temu
rodzic
commit
8498cadae8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/components/chat.tsx

+ 1 - 0
app/components/chat.tsx

@@ -1470,6 +1470,7 @@ function _Chat() {
                   )}
                   <div className={styles["chat-message-item"]}>
                     <Markdown
+                      key={message.streaming ? "loading" : "done"}
                       content={getMessageTextContent(message)}
                       loading={
                         (message.preview || message.streaming) &&