"use client"; import { ArrowRight, Bot, Brain, CheckCircle, FileText, MessageSquare, Sparkles, UserPlus, Users, Zap, } from "lucide-react"; import { motion } from "motion/react"; import { useRouter } from "next/navigation"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { useGlobalLLMConfigs, useLLMConfigs, useLLMPreferences } from "@/hooks/use-llm-configs"; interface CompletionStepProps { searchSpaceId: number; } export function CompletionStep({ searchSpaceId }: CompletionStepProps) { const router = useRouter(); const { llmConfigs } = useLLMConfigs(searchSpaceId); const { globalConfigs } = useGlobalLLMConfigs(); const { preferences } = useLLMPreferences(searchSpaceId); // Combine global and user-specific configs const allConfigs = [...globalConfigs, ...llmConfigs]; const assignedConfigs = { long_context: allConfigs.find((c) => c.id === preferences.long_context_llm_id), fast: allConfigs.find((c) => c.id === preferences.fast_llm_id), strategic: allConfigs.find((c) => c.id === preferences.strategic_llm_id), }; return (
Choose an option to continue