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
-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);
};