@@ -3,6 +3,8 @@ import api from '../utils/api';
33import { toast } from 'react-hot-toast' ;
44import { Send , ArrowRight , Bot } from 'lucide-react' ;
55import SchemaCanvasViewer from './SchemaCanvasViewer' ;
6+ import { Select , SelectContent , SelectItem , SelectTrigger , SelectValue } from './ui/select' ;
7+ import { Tooltip , TooltipContent , TooltipProvider , TooltipTrigger } from './ui/tooltip' ;
68
79const SUGGESTIONS = [
810 { label : 'E-commerce Platform' , prompt : 'Create an e-commerce platform with products, categories, orders, customers, and product reviews' } ,
@@ -243,15 +245,31 @@ export default function CollectionCreatorAgent({ projectId, onInsertAll }) {
243245 < Bot size = { 16 } className = "text-[var(--color-primary)]" />
244246 < span > AI Schema Assistant</ span >
245247 </ h3 >
246- < select
247- value = { selectedModel }
248- onChange = { ( e ) => setSelectedModel ( e . target . value ) }
249- className = "text-xs py-1 px-2 rounded-md border border-[var(--color-border)] bg-[var(--color-bg-input)] text-[var(--color-text-main)] focus:outline-none focus:border-[var(--color-primary)] max-w-[180px] overflow-hidden text-ellipsis whitespace-nowrap"
250- >
251- { MODELS . map ( m => (
252- < option key = { m } value = { m } > { m } </ option >
253- ) ) }
254- </ select >
248+ < div className = "flex items-center gap-2" >
249+ < TooltipProvider >
250+ < Tooltip >
251+ < TooltipTrigger asChild >
252+ < div className = "w-[180px]" >
253+ < Select value = { selectedModel } onValueChange = { setSelectedModel } >
254+ < SelectTrigger className = "w-full h-7 text-xs border-[var(--color-border)] bg-[var(--color-bg-input)]" >
255+ < SelectValue placeholder = "Select Model" />
256+ </ SelectTrigger >
257+ < SelectContent className = "max-h-[300px]" >
258+ { MODELS . map ( m => (
259+ < SelectItem key = { m } value = { m } className = "text-xs" >
260+ { m }
261+ </ SelectItem >
262+ ) ) }
263+ </ SelectContent >
264+ </ Select >
265+ </ div >
266+ </ TooltipTrigger >
267+ < TooltipContent >
268+ < p className = "text-xs" > Tip: use llama-3.3-70b-versatile for best results</ p >
269+ </ TooltipContent >
270+ </ Tooltip >
271+ </ TooltipProvider >
272+ </ div >
255273 </ div >
256274
257275 { /* Messages Stream (Only this scrolls) */ }
0 commit comments