diff --git a/imago-admin/src/components/admin/AIConfigSection.tsx b/imago-admin/src/components/admin/AIConfigSection.tsx index a4dd49e..1ae8f81 100644 --- a/imago-admin/src/components/admin/AIConfigSection.tsx +++ b/imago-admin/src/components/admin/AIConfigSection.tsx @@ -1,12 +1,12 @@ import { useState, useEffect, useCallback } from 'react'; import { useQuery } from '@tanstack/react-query'; import { fetchAIStatus, testModel } from '@/api/ai'; -import type { AIStatus, TestModelResponse } from '@/types/ai.types'; +import type { TestModelResponse } from '@/types/ai.types'; import { Bot, Zap, AlertTriangle, CheckCircle, Loader2, RefreshCw, Cpu, ChevronDown } from 'lucide-react'; import { clsx } from 'clsx'; export function AIConfigSection() { - const { data: aiStatus, isLoading, refetch } = useQuery({ + const { data: aiStatus, isLoading } = useQuery({ queryKey: ['ai-status'], queryFn: fetchAIStatus, refetchInterval: 30000,