fix: query catalog spec, default_version check

This commit is contained in:
jialin
2025-12-12 17:08:30 +08:00
parent cb43131ccb
commit 0500dd2e35
19 changed files with 86 additions and 23 deletions
@@ -250,6 +250,16 @@ const AddModal: React.FC<AddModalProps> = (props) => {
cluster_id: clusterId,
name
});
// If no avaliable gpus for the model, show warning message
if (!res.items.length) {
setWarningStatus({
show: true,
type: 'warning',
message: intl.formatMessage({ id: 'models.catalog.nogpus.tips' })
});
return;
}
handleCheckCompatibility(allValues);
} catch (error) {
// ignore