diff --git a/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts b/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts
index def0c24ec..b6366f6ec 100644
--- a/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts
+++ b/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts
@@ -48,15 +48,15 @@ export type BusterChatMessageReasoning =
| BusterChatMessageReasoning_text
| BusterChatMessageReasoning_file;
-export type BusterChatMessageReasoning_pillsPill = {
+export type BusterChatMessageReasoning_Pill = {
text: string;
type: ThoughtFileType | null; //if null then the pill will not link anywhere
id: string;
};
-export type BusterChatMessageReasoning_pillsPillContainer = {
+export type BusterChatMessageReasoning_PillsContainer = {
title: string;
- thought_pills: BusterChatMessageReasoning_pillsPill[];
+ pills: BusterChatMessageReasoning_Pill[];
};
export type BusterChatMessageReasoning_status = 'loading' | 'completed' | 'failed';
@@ -65,8 +65,8 @@ export type BusterChatMessageReasoning_pills = {
id: string;
type: 'pills';
title: string;
- secondary_title: string;
- pill_containers?: BusterChatMessageReasoning_pillsPillContainer[];
+ secondary_title?: string;
+ pill_containers?: BusterChatMessageReasoning_PillsContainer[];
status?: BusterChatMessageReasoning_status; //if left undefined, will automatically be set to 'loading' if the chat stream is in progress AND there is no message after it
};
@@ -74,6 +74,7 @@ export type BusterChatMessageReasoning_text = {
id: string;
type: 'text';
title: string;
+ secondary_title?: string;
message?: string;
message_chunk?: string;
status?: BusterChatMessageReasoning_status;
diff --git a/web/src/context/Chats/ChatProvider/MOCK_CHAT.ts b/web/src/context/Chats/ChatProvider/MOCK_CHAT.ts
index 4a3431db9..8ce4570c6 100644
--- a/web/src/context/Chats/ChatProvider/MOCK_CHAT.ts
+++ b/web/src/context/Chats/ChatProvider/MOCK_CHAT.ts
@@ -5,8 +5,8 @@ import {
type BusterChatMessageRequest,
BusterChatMessage_fileMetadata,
BusterChatMessageReasoning_pills,
- BusterChatMessageReasoning_file,
- BusterChatMessageReasoning_pillsPill
+ BusterChatMessageReasoning_Pill,
+ BusterChatMessageReasoning_file
} from '@/api/asset_interfaces';
import { faker } from '@faker-js/faker';
@@ -31,7 +31,7 @@ export const createMockResponseMessageText = (): BusterChatMessage_text => ({
export const createMockResponseMessageThought = (): BusterChatMessageReasoning_pills => {
const randomPillCount = faker.number.int({ min: 0, max: 10 });
- const fourRandomPills: BusterChatMessageReasoning_pillsPill[] = Array.from(
+ const fourRandomPills: BusterChatMessageReasoning_Pill[] = Array.from(
{ length: randomPillCount },
() => {
return {
@@ -49,11 +49,11 @@ export const createMockResponseMessageThought = (): BusterChatMessageReasoning_p
pill_containers: [
{
title: `Found ${faker.number.int(100)} terms`,
- thought_pills: fourRandomPills
+ pills: fourRandomPills
},
{
title: `Found ${faker.number.int(100)} terms 2`,
- thought_pills: fourRandomPills
+ pills: fourRandomPills
}
],
status: undefined
diff --git a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtContainer.tsx b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtContainer.tsx
index 5a7d9dccc..7681da78b 100644
--- a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtContainer.tsx
+++ b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtContainer.tsx
@@ -1,4 +1,4 @@
-import { BusterChatMessageReasoning_pillsPillContainer } from '@/api/asset_interfaces';
+import { BusterChatMessageReasoning_PillsContainer } from '@/api/asset_interfaces';
import React from 'react';
import { Text } from '@/components/ui';
import { PillContainer } from './ReasoningMessage_ThoughtPills';
@@ -6,7 +6,7 @@ import { itemAnimationConfig } from '../animationConfig';
import { AnimatePresence, motion } from 'framer-motion';
export const ReasoningMessage_ThoughtContainer: React.FC<{
- pillContainer: BusterChatMessageReasoning_pillsPillContainer;
+ pillContainer: BusterChatMessageReasoning_PillsContainer;
isCompletedStream: boolean;
}> = React.memo(({ pillContainer, isCompletedStream }) => {
return (
@@ -16,10 +16,7 @@ export const ReasoningMessage_ThoughtContainer: React.FC<{
{pillContainer.title}
-
+
diff --git a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtPills.tsx b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtPills.tsx
index 5dfc9e605..b9b62e174 100644
--- a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtPills.tsx
+++ b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Thought/ReasoningMessage_ThoughtPills.tsx
@@ -1,4 +1,4 @@
-import type { BusterChatMessageReasoning_pillsPill } from '@/api/asset_interfaces';
+import type { BusterChatMessageReasoning_Pill } from '@/api/asset_interfaces';
import { createStyles } from 'antd-style';
import React, { useMemo } from 'react';
import { AnimatePresence, motion } from 'framer-motion';
@@ -36,7 +36,7 @@ const pillVariants = {
};
export const PillContainer: React.FC<{
- pills: BusterChatMessageReasoning_pillsPill[];
+ pills: BusterChatMessageReasoning_Pill[];
isCompletedStream: boolean;
}> = React.memo(({ pills = [], isCompletedStream }) => {
const { cx } = useStyles();
@@ -45,7 +45,7 @@ export const PillContainer: React.FC<{
const useAnimation = !isCompletedStream;
const handlePillClick = useMemoizedFn(
- (pill: Pick) => {
+ (pill: Pick) => {
if (isOpenableFile(pill.type)) {
onSetSelectedFile(pill as SelectedFile);
}
@@ -78,10 +78,10 @@ PillContainer.displayName = 'PillContainer';
const Pill: React.FC<{
text: string;
id?: string;
- type?: BusterChatMessageReasoning_pillsPill['type'];
+ type?: BusterChatMessageReasoning_Pill['type'];
useAnimation: boolean;
className?: string;
- onClick?: (pill: Pick) => void;
+ onClick?: (pill: Pick) => void;
}> = React.memo(({ text, type, id, useAnimation, className = '', onClick }) => {
const { styles, cx } = useStyles();
return (
@@ -110,9 +110,9 @@ const OverflowPill = React.memo(
useAnimation,
onClickPill
}: {
- hiddenPills: BusterChatMessageReasoning_pillsPill[];
+ hiddenPills: BusterChatMessageReasoning_Pill[];
useAnimation: boolean;
- onClickPill: (pill: Pick) => void;
+ onClickPill: (pill: Pick) => void;
}) => {
const count = hiddenPills.length;