import { useTranslation } from 'react-i18next'; import { useEffect, useState } from 'react'; import styles from './index.less'; import { RadarChartOutlined } from '@ant-design/icons'; import { ProCard } from '@ant-design/pro-components'; import { Button, Card, Col, Row, Tag } from 'antd'; import { useDispatch, useSelector } from 'umi'; interface DataType { key: React.Key; name: string; age: number; address: string; description: string; } const SettingList = () => { const dispatch = useDispatch(); const settingModel = useSelector((state: any) => state.settingModel); const { llmInfo = {}, factoriesList, myLlm = [] } = settingModel; const { OpenAI = [], tongyi = [] } = llmInfo; const [collapsed, setCollapsed] = useState(true); const { t } = useTranslation(); useEffect(() => { dispatch({ type: 'settingModel/factories_list', payload: {}, }); dispatch({ type: 'settingModel/llm_list', payload: {}, }); dispatch({ type: 'settingModel/my_llm', payload: {}, }); }, [dispatch]); return (