diff --git a/joi/src/core/Badge/index.tsx b/joi/src/core/Badge/index.tsx index d9b04fd2b..5aeb19631 100644 --- a/joi/src/core/Badge/index.tsx +++ b/joi/src/core/Badge/index.tsx @@ -49,4 +49,4 @@ const Badge = ({ className, theme, size, variant, ...props }: BadgeProps) => { ) } -export { Badge } +export { Badge, badgeVariants } diff --git a/web/containers/ModelDropdown/index.tsx b/web/containers/ModelDropdown/index.tsx index 46154ce34..daef58e16 100644 --- a/web/containers/ModelDropdown/index.tsx +++ b/web/containers/ModelDropdown/index.tsx @@ -11,7 +11,7 @@ import Image from 'next/image' import { EngineConfig, InferenceEngine } from '@janhq/core' import { - Badge, + badgeVariants, Button, Input, ScrollArea, @@ -318,11 +318,13 @@ const ModelDropdown = ({ >
{chatInputMode ? ( - {selectedModel?.name || 'Select a model'} - + ) : ( { >
- { // TODO @faisal: should be refactor later and better experience beetwen tab and toggle button if (showRightPanel && activeTabThreadRightPanel !== 'model') { @@ -384,7 +391,7 @@ const ChatInput = () => { size={16} className="flex-shrink-0 cursor-pointer text-[hsla(var(--text-secondary))]" /> - +
{selectedModel && (