@@ -94,7 +96,40 @@ export const PlaygroundMessage = (props: Props) => {
{!editMode ? (
props.isBot ? (
-
+ <>
+ {parseReasoning(props.message).map((e, i) => {
+ if (e.type === "reasoning") {
+ return (
+
+
+ {t("reasoning.thinking")}
+
+
+ ) : (
+ t("reasoning.thought", {
+ time: humanizeMilliseconds(
+ props.reasoningTimeTaken
+ )
+ })
+ ),
+ children:
+ }
+ ]}
+ />
+ )
+ }
+
+ return
+ })}
+ >
) : (
{
}
title={t("generationInfo")}>
@@ -231,7 +266,7 @@ export const PlaygroundMessage = (props: Props) => {
props.currentMessageIndex === props.totalMessages - 1 && (