+
+
+ {meta.icon}
+
+
+
+
+ {row.display_name || row.model}
+
+ {row.is_default && (
+ 默认
+ )}
+
+ {!row.enabled ? '已停用' : row.available ? '就绪' : '未就绪'}
+
+ {fault > 0 && 故障注入 {(fault * 100).toFixed(0)}%}
+
+
{row.model}
+
+ {row.provider} · {row.model_code || '未设置编码'} · {row.adapter}
+
+
+
+
+
+ {/* 密钥默认只有掩码;展开明文后允许换行 —— 密钥 40+ 字符,省略号等于没显示 */}
+
+
{row.media_type === 'llm' ? 'Endpoint / Key' : '资源地址 / 参考'}
+
+
+ {shown}
+
+ {row.has_api_key && (
+
+ )}
+
+
+
+ {files.length > 0 && (
+
+ {files.slice(0, 3).map((file) => (
+
+ {file}
+
+ ))}
+
+ )}
+
+
+ {(row.modes || []).slice(0, 5).map((mode: string) => {mode})}
+ {!!row.timeout_seconds && 超时 {row.timeout_seconds}s}
+ {!!row.max_concurrency && 并发 {row.max_concurrency}}
+
+
+ {row.notes && {row.notes}
}
+
+
+ ▤
+ {usageParts(row).map((part, idx) => (
+
+ {idx > 0 && ·}
+
+ {part}
+
+
+ ))}
+
+
+
+ onPatch({ enabled: !row.enabled }, row.enabled ? '停用模型' : '启用模型')}>
+ 启用
+
+
+
+
+
+
+ )
}