You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workspaces/ai-integrations/plugins/catalog-backend-module-model-catalog/src/clients/ModelCatalogGenerator.test.ts
Copy file name to clipboardExpand all lines: workspaces/ai-integrations/plugins/catalog-backend-module-model-catalog/src/clients/ModelCatalogGenerator.ts
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ export function GenerateModelResourceEntities(
95
95
links: [],
96
96
},
97
97
spec: {
98
-
owner: `${model.owner}`,
98
+
owner: `user:${model.owner}`,
99
99
type: 'ai-model',
100
100
},
101
101
};
@@ -116,6 +116,12 @@ export function GenerateModelResourceEntities(
116
116
url: `${model.howToUseURL}`,
117
117
});
118
118
}
119
+
if(model.license!==undefined){
120
+
modelResourceEntity.metadata.links?.push({
121
+
title: `License`,
122
+
url: `${model.license}`,
123
+
});
124
+
}
119
125
modelResourceEntity.spec.dependencyOf=[];
120
126
if(modelServer!==undefined){
121
127
modelResourceEntity.spec.dependencyOf?.push(
@@ -160,7 +166,7 @@ export function GenerateModelServerComponentEntity(
160
166
spec: {
161
167
type: 'model-server',
162
168
lifecycle: `${modelServer.lifecycle}`,
163
-
owner: `${modelServer.owner}`,
169
+
owner: `user:${modelServer.owner}`,
164
170
},
165
171
};
166
172
@@ -175,6 +181,12 @@ export function GenerateModelServerComponentEntity(
Copy file name to clipboardExpand all lines: workspaces/ai-integrations/plugins/catalog-backend-module-model-catalog/src/providers/__snapshots__/ModelCatalogResourceEntityProvider.test.ts.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ exports[`ModelCatalogResourceEntityProvider should connect and run should resolv
0 commit comments