chore: access form

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent e8e982559d
commit 5fcdf4ea00
22 changed files with 372 additions and 140 deletions
+6 -2
View File
@@ -1,6 +1,6 @@
import SealInput from '@/components/seal-form/seal-input';
import SealSelect from '@/components/seal-form/seal-select';
import { categoryOptions } from '@/pages/llmodels/config';
import { modelCategories } from '@/pages/llmodels/config';
import { useIntl } from '@umijs/max';
import { Form } from 'antd';
import { FormData } from '../config/types';
@@ -14,7 +14,11 @@ const Basic = () => {
<SealInput.Input required label={'Model Name'} />
</Form.Item>
<Form.Item name="category">
<SealSelect options={categoryOptions} label="Category"></SealSelect>
<SealSelect
options={modelCategories}
label="Category"
allowNull
></SealSelect>
</Form.Item>
<Form.Item name="description">
<SealInput.TextArea