mirror of https://github.com/buster-so/buster.git
colse logs
This commit is contained in:
parent
ff04fba047
commit
70aef8f28e
|
@ -8,9 +8,6 @@ export default function Page(params: { params: { chatId: string } }) {
|
|||
const selectedFileId = useChatIndividualContextSelector((x) => x.selectedFileId);
|
||||
const selectedFileType = useChatIndividualContextSelector((x) => x.selectedFileType);
|
||||
|
||||
console.log('selectedFileId', selectedFileId);
|
||||
console.log('selectedFileType', selectedFileType);
|
||||
|
||||
if (selectedFileId && selectedFileType === 'reasoning') {
|
||||
return <ReasoningController chatId={params.params.chatId} messageId={selectedFileId} />;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ export const useBlackBoxMessage = () => {
|
|||
|
||||
const addBlackBoxMessage = useMemoizedFn(({ messageId }: { messageId: string }) => {
|
||||
const randomThought = getRandomThought();
|
||||
console.log(messageId, randomThought);
|
||||
const options = queryKeys.chatsBlackBoxMessages(messageId);
|
||||
queryClient.setQueryData(options.queryKey, randomThought);
|
||||
});
|
||||
|
|
|
@ -38,7 +38,6 @@ export const useChatStreamMessage = () => {
|
|||
const onUpdateChatMessageTransition = useMemoizedFn(
|
||||
(chatMessage: Parameters<typeof onUpdateChatMessage>[0]) => {
|
||||
const currentChatMessage = chatRefMessages.current[chatMessage.id];
|
||||
console.log('currentChatMessage', currentChatMessage, 'updatingTo', chatMessage);
|
||||
const iChatMessage: IBusterChatMessage = create(currentChatMessage, (draft) => {
|
||||
Object.assign(draft || {}, chatMessage);
|
||||
if (chatMessage.id) draft.id = chatMessage.id;
|
||||
|
|
|
@ -161,7 +161,7 @@ export const SameIdDifferentTypes: Story = {
|
|||
version_id: 'v1',
|
||||
status: 'completed',
|
||||
file: {
|
||||
text: 'console.log("Dynamic content");\n',
|
||||
text: 'console.swag("Dynamic content");\n',
|
||||
modified: [[1, 1]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,26 +13,12 @@ const getReasoningMessage = (x: BusterChatMessage | undefined, reasoningMessageI
|
|||
|
||||
export const ReasoningMessage_Files: React.FC<ReasoningMessageProps> = React.memo(
|
||||
({ isCompletedStream, chatId, reasoningMessageId, messageId }) => {
|
||||
const status = useMessageIndividual(
|
||||
messageId,
|
||||
(x) => getReasoningMessage(x, reasoningMessageId)?.status
|
||||
);
|
||||
const file_ids = useMessageIndividual(
|
||||
messageId,
|
||||
(x) => getReasoningMessage(x, reasoningMessageId)?.file_ids
|
||||
);
|
||||
const title = useMessageIndividual(
|
||||
messageId,
|
||||
(x) => getReasoningMessage(x, reasoningMessageId)?.title
|
||||
);
|
||||
const secondary_title = useMessageIndividual(
|
||||
messageId,
|
||||
(x) => getReasoningMessage(x, reasoningMessageId)?.secondary_title
|
||||
);
|
||||
|
||||
if (!title) return null;
|
||||
|
||||
console.log(status);
|
||||
if (!file_ids || file_ids.length === 0) return null;
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-3">
|
||||
|
|
Loading…
Reference in New Issue