diff --git a/src/interface/web/app/agents/page.tsx b/src/interface/web/app/agents/page.tsx index 35d23660..8b578de4 100644 --- a/src/interface/web/app/agents/page.tsx +++ b/src/interface/web/app/agents/page.tsx @@ -344,14 +344,16 @@ export default function Agents() { /> How it works Use any of these specialized personas to tune your conversation to your needs. - { - !isSubscribed && ( - - {" "} - Upgrade your plan to leverage custom models. You will fallback to the default model when chatting. - - ) - } + {!isSubscribed && ( + + {" "} + + Upgrade your plan + {" "} + to leverage custom models. You will fallback to the + default model when chatting. + + )}
- {selectedModel ? selectedModel.name?.substring(0, 20) : "Select a model..."} + {selectedModel + ? selectedModel.name?.substring(0, 20) + : "Select a model..."}
+ {peekedModel.strengths} +
+- {peekedModel.strengths} -
-- { - error ? "Failed to load files" : "Failed to load selected files" - } + {error ? "Failed to load files" : "Failed to load selected files"}
@@ -257,7 +255,7 @@ export function FilesMenu(props: FilesMenuProps) { - ) + ); } if (!files) return{title}
diff --git a/src/interface/web/app/components/appSidebar/appSidebar.tsx b/src/interface/web/app/components/appSidebar/appSidebar.tsx index 85901371..94b3b3ea 100644 --- a/src/interface/web/app/components/appSidebar/appSidebar.tsx +++ b/src/interface/web/app/components/appSidebar/appSidebar.tsx @@ -48,13 +48,12 @@ async function openChat(userData: UserProfile | null | undefined) { } } - // Menu items. const items = [ { title: "Home", url: "/", - icon: HouseSimple + icon: HouseSimple, }, { title: "Agents", diff --git a/src/interface/web/app/components/chatHistory/chatHistory.tsx b/src/interface/web/app/components/chatHistory/chatHistory.tsx index 18810a93..bb61c9f7 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.tsx +++ b/src/interface/web/app/components/chatHistory/chatHistory.tsx @@ -52,7 +52,7 @@ interface TrainOfThoughtFrame { } interface TrainOfThoughtGroup { - type: 'video' | 'text'; + type: "video" | "text"; frames?: TrainOfThoughtFrame[]; textEntries?: TrainOfThoughtObject[]; } @@ -65,7 +65,9 @@ interface TrainOfThoughtComponentProps { completed?: boolean; } -function extractTrainOfThoughtGroups(trainOfThought?: TrainOfThoughtObject[]): TrainOfThoughtGroup[] { +function extractTrainOfThoughtGroups( + trainOfThought?: TrainOfThoughtObject[], +): TrainOfThoughtGroup[] { if (!trainOfThought) return []; const groups: TrainOfThoughtGroup[] = []; @@ -94,8 +96,8 @@ function extractTrainOfThoughtGroups(trainOfThought?: TrainOfThoughtObject[]): T // If we have accumulated text entries, add them as a text group if (currentTextEntries.length > 0) { groups.push({ - type: 'text', - textEntries: [...currentTextEntries] + type: "text", + textEntries: [...currentTextEntries], }); currentTextEntries = []; } @@ -116,8 +118,8 @@ function extractTrainOfThoughtGroups(trainOfThought?: TrainOfThoughtObject[]): T // If we have accumulated video frames, add them as a video group if (currentVideoFrames.length > 0) { groups.push({ - type: 'video', - frames: [...currentVideoFrames] + type: "video", + frames: [...currentVideoFrames], }); currentVideoFrames = []; } @@ -130,14 +132,14 @@ function extractTrainOfThoughtGroups(trainOfThought?: TrainOfThoughtObject[]): T // Add any remaining frames/entries if (currentVideoFrames.length > 0) { groups.push({ - type: 'video', - frames: currentVideoFrames + type: "video", + frames: currentVideoFrames, }); } if (currentTextEntries.length > 0) { groups.push({ - type: 'text', - textEntries: currentTextEntries + type: "text", + textEntries: currentTextEntries, }); } @@ -177,10 +179,10 @@ function TrainOfThoughtComponent(props: TrainOfThoughtComponentProps) { // Convert string array to TrainOfThoughtObject array if needed let trainOfThoughtObjects: TrainOfThoughtObject[]; - if (typeof props.trainOfThought[0] === 'string') { + if (typeof props.trainOfThought[0] === "string") { trainOfThoughtObjects = (props.trainOfThought as string[]).map((data, index) => ({ - type: 'text', - data: data + type: "text", + data: data, })); } else { trainOfThoughtObjects = props.trainOfThought as TrainOfThoughtObject[]; @@ -221,28 +223,37 @@ function TrainOfThoughtComponent(props: TrainOfThoughtComponentProps) {