import { Label } from '@/components/ui/label'; import { Brain } from 'lucide-react'; import { cn } from '@/lib/utils'; import { ThinkingLevel } from '@/store/app-store'; import { THINKING_LEVEL_LABELS } from './model-constants'; import { getThinkingLevelsForModel } from '@automaker/types'; interface ThinkingLevelSelectorProps { selectedLevel: ThinkingLevel; onLevelSelect: (level: ThinkingLevel) => void; testIdPrefix?: string; /** Model ID is required for correct thinking level filtering. * Without it, adaptive thinking won't be available for Opus 4.6. */ model?: string; } export function ThinkingLevelSelector({ selectedLevel, onLevelSelect, testIdPrefix = 'thinking-level', model, }: ThinkingLevelSelectorProps) { const levels = getThinkingLevelsForModel(model || ''); return (
{levels.includes('adaptive') ? 'Adaptive thinking lets the model decide how much reasoning to use.' : 'Higher levels give more time to reason through complex problems.'}