import { useFetchLlmFactoryListOnMount, useFetchMyLlmListOnMount, } from '@/hooks/llmHooks'; import { SettingOutlined } from '@ant-design/icons'; import { Avatar, Button, Card, Col, Divider, Flex, List, Row, Space, Tag, } from 'antd'; import SettingTitle from '../components/setting-title'; import ApiKeyModal from './api-key-modal'; import { useSubmitApiKey } from './hooks'; import styles from './index.less'; const UserSettingModel = () => { const factoryList = useFetchLlmFactoryListOnMount(); const llmList = useFetchMyLlmListOnMount(); const { saveApiKeyLoading, initialApiKey, onApiKeySavingOk, apiKeyVisible, hideApiKeyModal, showApiKeyModal, } = useSubmitApiKey(); const handleApiKeyClick = (llmFactory: string) => () => { showApiKeyModal({ llm_factory: llmFactory }); }; return ( <> ( {item.name} {item.tags.split(',').map((x) => ( {x} ))} API-Key Show more models {item.name}} /> )} /> Models to be added ( {item.name} {item.tags.split(',').map((x) => ( {x} ))} )} /> > ); }; export default UserSettingModel;
Models to be added