feat: add parameter format and common parameters to backend configuration

This commit is contained in:
yxf
2026-05-26 14:30:19 +08:00
committed by yxf0314
parent 95e03d11c1
commit 91c3d0b814
15 changed files with 148 additions and 4 deletions
+41
View File
@@ -5,6 +5,7 @@ import {
Input as CInput,
LabelSelector,
ListInput,
Select as SealSelect,
Textarea as SealTextArea,
useAppUtils
} from '@gpustack/core-ui';
@@ -148,6 +149,46 @@ const BasicForm = () => {
})}
></ListInput>
</Form.Item>
<Form.Item<FormData>
name="parameter_format"
initialValue="auto"
rules={[{ required: false }]}
>
<SealSelect
label={intl.formatMessage({ id: 'backend.form.parameterFormat' })}
options={[
{
label: intl.formatMessage({
id: 'backend.form.parameterFormat.default'
}),
value: 'auto'
},
{
label: intl.formatMessage({
id: 'backend.form.parameterFormat.space'
}),
value: 'space'
},
{
label: intl.formatMessage({
id: 'backend.form.parameterFormat.equal'
}),
value: 'equal'
}
]}
></SealSelect>
</Form.Item>
<Form.Item<FormData>
name="common_parameters"
rules={[{ required: false }]}
>
<ListInput
btnText={intl.formatMessage({ id: 'backend.form.addParameter' })}
label={intl.formatMessage({
id: 'backend.form.commonParameters'
})}
></ListInput>
</Form.Item>
<Form.Item<FormData> name="default_env">
<LabelSelector
label={intl.formatMessage({