From 30f9d310e52a0a481e6d0b3f9d4349fce52dbd96 Mon Sep 17 00:00:00 2001 From: ningyv <1793599591@qq.com> Date: Thu, 10 Apr 2025 16:28:20 +0800 Subject: [PATCH] feature/1.7-MCP --- frontend/packages/core/src/pages/system/SystemConfig.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/packages/core/src/pages/system/SystemConfig.tsx b/frontend/packages/core/src/pages/system/SystemConfig.tsx index e36ec29e..c819041d 100644 --- a/frontend/packages/core/src/pages/system/SystemConfig.tsx +++ b/frontend/packages/core/src/pages/system/SystemConfig.tsx @@ -23,7 +23,6 @@ import { v4 as uuidv4 } from 'uuid' import { SystemConfigFieldType, SystemConfigHandle } from '../../const/system/type.ts' import { useSystemContext } from '../../contexts/SystemContext.tsx' import { Codebox } from '@common/components/postcat/api/Codebox/index.tsx' -import { useAiServiceContext } from '@core/contexts/AiServiceContext.tsx' export type SimpleAiProviderItem = EntityItem & { configured: boolean @@ -40,7 +39,6 @@ const SystemConfig = forwardRef((_, ref) => { const navigate = useNavigate() const { setBreadcrumb } = useBreadcrumb() const { setSystemInfo } = useSystemContext() - const { setAiServiceInfo } = useAiServiceContext() const [showClassify, setShowClassify] = useState(true) const [showAI, setShowAI] = useState(false) const [imageBase64, setImageBase64] = useState(null) @@ -276,7 +274,6 @@ const SystemConfig = forwardRef((_, ref) => { if (code === STATUS_CODE.SUCCESS) { message.success(msg || $t(RESPONSE_TIPS.success)) setSystemInfo(data.service) - setAiServiceInfo(data.service) return Promise.resolve(true) } else { message.error(msg || $t(RESPONSE_TIPS.error))