Merge branch 'big-nate/bus-939-create-new-structure-for-chats' into evals

This commit is contained in:
Nate Kelley 2025-03-10 09:45:21 -06:00
commit ac3d429492
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 9 additions and 3 deletions

View File

@ -44,6 +44,12 @@ export const useChatStreamMessage = () => {
})!; })!;
chatRefMessages.current[chatMessage.id] = iChatMessage; chatRefMessages.current[chatMessage.id] = iChatMessage;
console.log(
'iChatMessage',
Object.keys(iChatMessage.reasoning_messages),
iChatMessage.reasoning_message_ids
);
onUpdateChatMessage(iChatMessage); onUpdateChatMessage(iChatMessage);
startTransition(() => { startTransition(() => {

View File

@ -71,7 +71,7 @@ export const ReasoningMessageSelector: React.FC<ReasoningMessageSelectorProps> =
status: x?.reasoning_messages[reasoningMessageId]?.status status: x?.reasoning_messages[reasoningMessageId]?.status
})); }));
if (!title || !secondary_title || !type || !status) return null; if (!type || !status) return null;
const ReasoningMessage = ReasoningMessageRecord[type]; const ReasoningMessage = ReasoningMessageRecord[type];
const animationKey = reasoningMessageId + type; const animationKey = reasoningMessageId + type;
@ -81,8 +81,8 @@ export const ReasoningMessageSelector: React.FC<ReasoningMessageSelectorProps> =
showBar={true} showBar={true}
status={status} status={status}
isCompletedStream={isCompletedStream} isCompletedStream={isCompletedStream}
title={title} title={title ?? ''}
secondaryTitle={secondary_title}> secondaryTitle={secondary_title ?? ''}>
<AnimatePresence mode="wait"> <AnimatePresence mode="wait">
<motion.div key={animationKey} {...itemAnimationConfig} className="overflow-hidden" layout> <motion.div key={animationKey} {...itemAnimationConfig} className="overflow-hidden" layout>
<ReasoningMessage <ReasoningMessage