Skip to content

Commit

Permalink
refactor(brain): check location first
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 10, 2024
1 parent 723deb0 commit a4734b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/brain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function getFileInfo(brain: AIModelSettings) {
} else {
downloaded = file.downloaded ? '[downloaded]' : ''
}
result.push({quant: AIModelQuantType[file.quant!],file_name: path.basename(file.file_name!), count: file.count, file_size: file.file_size!, downloaded})
result.push({quant: AIModelQuantType[file.quant!],file_name: path.basename(file.location || file.file_name!), count: file.count, file_size: file.file_size!, downloaded})
}
return result
}
Expand Down

0 comments on commit a4734b9

Please sign in to comment.