diff --git a/src/message.tsx b/src/message.tsx index 7c38f07..67fdbfc 100644 --- a/src/message.tsx +++ b/src/message.tsx @@ -51,7 +51,7 @@ export default function Message(props: Props) { chat.role === "assistant" ? "justify-start" : "justify-end" }`} > -
+
- {chatStore.develop_mode ? ( - - ) : ( -

- {chat.hide - ? chat.content.split("\n")[0].slice(0, 16) + "... (deleted)" - : chat.content} -

- )} +

+ {chat.hide + ? chat.content.split("\n")[0].slice(0, 16) + "... (deleted)" + : chat.content} +

-
- token {chatStore.history[messageIndex].token} - -
+ {chatStore.develop_mode && ( +
+ token {chatStore.history[messageIndex].token} + +
+ )}