chore: rename model.size to model.file_size

to disambiguate from RAM size or pixel size
This commit is contained in:
Kevin Turner
2025-04-05 15:05:00 -07:00
committed by psychedelicious
parent e537020c11
commit 52a8ad1c18
12 changed files with 85 additions and 85 deletions

View File

@@ -109,7 +109,7 @@ const ModelListItem = ({ model }: ModelListItemProps) => {
<ModelFormatBadge format={model.format} />
</Flex>
<Text>
{(model.size / 1024 ** 3).toLocaleString(undefined, {
{(model.file_size / 1024 ** 3).toLocaleString(undefined, {
maximumFractionDigits: 2,
style: 'unit',
unit: 'gigabyte',

View File

@@ -51,8 +51,8 @@ export const ModelView = memo(({ modelConfig }: Props) => {
<ModelAttrView label={t('common.format')} value={modelConfig.format} />
<ModelAttrView label={t('modelManager.path')} value={modelConfig.path} />
<ModelAttrView
label={t('modelManager.size')}
value={(modelConfig.size / 1024 ** 3).toLocaleString(undefined, {
label={t('modelManager.fileSize')}
value={(modelConfig.file_size / 1024 ** 3).toLocaleString(undefined, {
maximumFractionDigits: 2,
style: 'unit',
unit: 'gigabyte',