Pārlūkot izejas kodu

feat: add model name

DDMeaqua 1 gadu atpakaļ
vecāks
revīzija
fb5fc13f72
2 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. 6 0
      app/components/chat.module.scss
  2. 5 0
      app/components/chat.tsx

+ 6 - 0
app/components/chat.module.scss

@@ -346,6 +346,12 @@
       flex-wrap: nowrap;
     }
   }
+
+  .chat-model-name {
+    font-size: 12px;
+    color: var(--black);
+    margin-left: 6px;
+  }
 }
 
 .chat-message-container {

+ 5 - 0
app/components/chat.tsx

@@ -1524,6 +1524,11 @@ function _Chat() {
                         </>
                       )}
                     </div>
+                    {!isUser && (
+                      <div className={styles["chat-model-name"]}>
+                        {message.model}
+                      </div>
+                    )}
 
                     {showActions && (
                       <div className={styles["chat-message-actions"]}>