fix: set null to filename for download non-gguf

This commit is contained in:
jialin
2025-07-11 11:07:54 +08:00
parent c3686579b2
commit fda4786737
4 changed files with 12 additions and 17 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ const DownloadModel: React.FC<AddModalProps> = (props) => {
if (source === modelSourceMap.huggingface_value) {
const huggingFaceModel = {
huggingface_repo_id: selectedModel.name,
huggingface_filename: fileName
huggingface_filename: fileName || null
};
return huggingFaceModel;
}
@@ -62,7 +62,7 @@ const DownloadModel: React.FC<AddModalProps> = (props) => {
if (source === modelSourceMap.modelscope_value) {
const modelScopeModel = {
model_scope_model_id: selectedModel.name,
model_scope_file_path: fileName
model_scope_file_path: fileName || null
};
return modelScopeModel;
}