fix: set default vllm backend for gguf
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user