diff --git a/components/elements/branch.tsx b/components/elements/branch.tsx index b730e18..7723109 100644 --- a/components/elements/branch.tsx +++ b/components/elements/branch.tsx @@ -82,9 +82,9 @@ export type BranchMessagesProps = HTMLAttributes; export const BranchMessages = ({ children, ...props }: BranchMessagesProps) => { const { currentBranch, setBranches, branches } = useBranch(); - const childrenArray = useMemo(() => - Array.isArray(children) ? children : [children], - [children] + const childrenArray = useMemo( + () => (Array.isArray(children) ? children : [children]), + [children], ); // Use useEffect to update branches when they change diff --git a/components/icons.tsx b/components/icons.tsx index 703fcb7..c6f5d3f 100644 --- a/components/icons.tsx +++ b/components/icons.tsx @@ -515,7 +515,10 @@ export const InfoIcon = ({ size = 16 }: { size?: number }) => { ); }; -export const ArrowUpIcon = ({ size = 16, ...props }: { size?: number } & React.SVGProps) => { +export const ArrowUpIcon = ({ + size = 16, + ...props +}: { size?: number } & React.SVGProps) => { return ( ) => { +export const StopIcon = ({ + size = 16, + ...props +}: { size?: number } & React.SVGProps) => { return ( ) => { +export const PaperclipIcon = ({ + size = 16, + ...props +}: { size?: number } & React.SVGProps) => { return ( {
-
+
Thinking...
diff --git a/components/messages.tsx b/components/messages.tsx index 0b8e00d..cff0c61 100644 --- a/components/messages.tsx +++ b/components/messages.tsx @@ -66,7 +66,7 @@ function PureMessages({ className="overscroll-behavior-contain -webkit-overflow-scrolling-touch flex-1 touch-pan-y overflow-y-scroll" style={{ overflowAnchor: 'none' }} > - + {messages.length === 0 && } diff --git a/components/model-selector.tsx b/components/model-selector.tsx index cb72a10..0a7426a 100644 --- a/components/model-selector.tsx +++ b/components/model-selector.tsx @@ -62,7 +62,10 @@ export function ModelSelector({ - + {availableChatModels.map((chatModel) => { const { id } = chatModel; @@ -87,12 +90,12 @@ export function ModelSelector({ >
{chatModel.name}
-
+
{chatModel.description}
-
+
diff --git a/components/preview-attachment.tsx b/components/preview-attachment.tsx index 3df229c..baa3a44 100644 --- a/components/preview-attachment.tsx +++ b/components/preview-attachment.tsx @@ -18,7 +18,10 @@ export const PreviewAttachment = ({ const { name, url, contentType } = attachment; return ( -
+
{contentType?.startsWith('image') ? ( ) : ( -
+
File
)} @@ -50,7 +53,7 @@ export const PreviewAttachment = ({ )} -
+
{name}
diff --git a/components/ui/progress.tsx b/components/ui/progress.tsx index 5c87ea4..b21d71b 100644 --- a/components/ui/progress.tsx +++ b/components/ui/progress.tsx @@ -1,9 +1,9 @@ -"use client" +'use client'; -import * as React from "react" -import * as ProgressPrimitive from "@radix-ui/react-progress" +import * as React from 'react'; +import * as ProgressPrimitive from '@radix-ui/react-progress'; -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils'; const Progress = React.forwardRef< React.ElementRef, @@ -12,8 +12,8 @@ const Progress = React.forwardRef< @@ -22,7 +22,7 @@ const Progress = React.forwardRef< style={{ transform: `translateX(-${100 - (value || 0)}%)` }} /> -)) -Progress.displayName = ProgressPrimitive.Root.displayName +)); +Progress.displayName = ProgressPrimitive.Root.displayName; -export { Progress } +export { Progress };