mirror of https://github.com/buster-so/buster.git
Merge branch 'big-nate/bus-939-create-new-structure-for-chats' into evals
This commit is contained in:
commit
ac3d429492
|
@ -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(() => {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue