import { IModalManagerChildrenProps } from '@/components/modal-manager'; import { LlmModelType } from '@/constants/knowledge'; import { ISystemModelSettingSavingParams } from '@/hooks/llmHooks'; import { Form, Modal, Select } from 'antd'; import { useEffect } from 'react'; import { useFetchSystemModelSettingOnMount } from '../hooks'; interface IProps extends Omit { loading: boolean; onOk: ( payload: Omit, ) => void; } const SystemModelSettingModal = ({ visible, hideModal, onOk, loading, }: IProps) => { const [form] = Form.useForm(); const { systemSetting: initialValues, allOptions } = useFetchSystemModelSettingOnMount(visible); const handleOk = async () => { const values = await form.validateFields(); onOk(values); }; useEffect(() => { form.setFieldsValue(initialValues); }, [form, initialValues]); const onFormLayoutChange = () => {}; return (
); }; export default SystemModelSettingModal;