fix: 模型下拉框展示磁盘实际文件大小替代参数量
This commit is contained in:
@@ -57,9 +57,8 @@ export async function loadModels() {
|
|||||||
data.models.forEach(m => {
|
data.models.forEach(m => {
|
||||||
const opt = document.createElement('option');
|
const opt = document.createElement('option');
|
||||||
opt.value = m.name;
|
opt.value = m.name;
|
||||||
const paramSize = m.details?.parameter_size || '';
|
const diskSize = formatSize(m.size);
|
||||||
const family = m.details?.family || '';
|
const label = diskSize ? `${m.name} · ${diskSize}` : m.name;
|
||||||
const label = paramSize ? `${m.name} · ${paramSize}` : m.name;
|
|
||||||
opt.textContent = label;
|
opt.textContent = label;
|
||||||
modelSelectEl.appendChild(opt);
|
modelSelectEl.appendChild(opt);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user