fix: set default vllm backend for gguf

This commit is contained in:
jialin
2025-11-23 21:08:28 +08:00
parent 5bd0020e49
commit f4ea23dd14
4 changed files with 15 additions and 12 deletions
@@ -47,7 +47,6 @@ const CustomBackend: React.FC = () => {
<SealInput.Input
required
allowClear
onBlur={handleImageNameOnBlur}
label={intl.formatMessage({ id: 'backend.imageName' })}
></SealInput.Input>
</Form.Item>
@@ -65,7 +64,6 @@ const CustomBackend: React.FC = () => {
required
scaleSize={false}
alwaysFocus={true}
onBlur={handleRunCommandOnBlur}
autoSize={{ minRows: 2, maxRows: 4 }}
label={intl.formatMessage({ id: 'backend.runCommand' })}
description={intl.formatMessage({
-8
View File
@@ -241,14 +241,6 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
...updateGPUSelector(val)
});
const imageName = form.getFieldValue('image_name');
const runCommand = form.getFieldValue('run_command');
// if the image_name or run_command is empty, set them to default value of the backend
if (val === backendOptionsMap.custom && !imageName && !runCommand) {
return;
}
onBackendChange?.(val);
};