@mlhub/models-ts-sdk 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -1
- package/README.md +2 -2
- package/dist/apis/ArtifactsApi.d.ts +2 -2
- package/dist/apis/ArtifactsApi.js +3 -3
- package/dist/apis/ModelsApi.d.ts +4 -7
- package/dist/apis/ModelsApi.js +6 -11
- package/dist/models/AssociateModelMetadataBody.d.ts +33 -0
- package/dist/models/{AssociateModelMetadata.js → AssociateModelMetadataBody.js} +7 -7
- package/dist/models/Canonical.d.ts +76 -0
- package/dist/models/Canonical.js +58 -0
- package/dist/models/CreateModelMetadataBody.d.ts +245 -0
- package/dist/models/CreateModelMetadataBody.js +114 -0
- package/dist/models/DiscoveryCriteria.d.ts +0 -6
- package/dist/models/DiscoveryCriteria.js +0 -2
- package/dist/models/Locator.d.ts +27 -0
- package/dist/models/Locator.js +40 -0
- package/dist/models/ModelMetadata.d.ts +13 -1
- package/dist/models/ModelMetadata.js +4 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/ArtifactsApi.ts +7 -7
- package/src/apis/ModelsApi.ts +10 -21
- package/src/models/{AssociateModelMetadata.ts → AssociateModelMetadataBody.ts} +8 -8
- package/src/models/Canonical.ts +131 -0
- package/src/models/CreateModelMetadataBody.ts +360 -0
- package/src/models/DiscoveryCriteria.ts +0 -8
- package/src/models/Locator.ts +56 -0
- package/src/models/ModelMetadata.ts +20 -0
- package/src/models/index.ts +4 -1
- package/dist/models/AssociateModelMetadata.d.ts +0 -33
package/.openapi-generator/FILES
CHANGED
|
@@ -18,9 +18,11 @@ src/models/ArtifactIngestionStatus.ts
|
|
|
18
18
|
src/models/ArtifactPublication.ts
|
|
19
19
|
src/models/ArtifactPublicationStatus.ts
|
|
20
20
|
src/models/ArtifactType.ts
|
|
21
|
-
src/models/
|
|
21
|
+
src/models/AssociateModelMetadataBody.ts
|
|
22
22
|
src/models/AssociateModelMetadataResponse.ts
|
|
23
23
|
src/models/BadRequestResponse.ts
|
|
24
|
+
src/models/Canonical.ts
|
|
25
|
+
src/models/CreateModelMetadataBody.ts
|
|
24
26
|
src/models/CreateModelMetadataResponse.ts
|
|
25
27
|
src/models/DiscoverModelsByPlatformResponse.ts
|
|
26
28
|
src/models/DiscoverModelsResponse.ts
|
|
@@ -42,6 +44,7 @@ src/models/ListModelsByPlatformResponse.ts
|
|
|
42
44
|
src/models/ListModelsResponse.ts
|
|
43
45
|
src/models/ListPlatformsResponse.ts
|
|
44
46
|
src/models/ListTasksResponse.ts
|
|
47
|
+
src/models/Locator.ts
|
|
45
48
|
src/models/ModelArtifact.ts
|
|
46
49
|
src/models/ModelIO.ts
|
|
47
50
|
src/models/ModelMetadata.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @mlhub/models-ts-sdk@0.
|
|
1
|
+
## @mlhub/models-ts-sdk@0.2.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @mlhub/models-ts-sdk@0.
|
|
39
|
+
npm install @mlhub/models-ts-sdk@0.2.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import {
|
|
13
|
+
import { AssociateModelMetadataBody, AssociateModelMetadataResponse, GetModelArtifactResponse, ListModelArtifactResponse } from '../models';
|
|
14
14
|
export interface AssociateModelMetadataWithArtifactRequest {
|
|
15
15
|
artifactId: string;
|
|
16
|
-
|
|
16
|
+
associateModelMetadataBody: AssociateModelMetadataBody;
|
|
17
17
|
}
|
|
18
18
|
export interface GetModelArtifactRequest {
|
|
19
19
|
artifactId: string;
|
|
@@ -87,8 +87,8 @@ var ArtifactsApi = /** @class */ (function (_super) {
|
|
|
87
87
|
if (requestParameters.artifactId === null || requestParameters.artifactId === undefined) {
|
|
88
88
|
throw new runtime.RequiredError('artifactId', 'Required parameter requestParameters.artifactId was null or undefined when calling associateModelMetadataWithArtifact.');
|
|
89
89
|
}
|
|
90
|
-
if (requestParameters.
|
|
91
|
-
throw new runtime.RequiredError('
|
|
90
|
+
if (requestParameters.associateModelMetadataBody === null || requestParameters.associateModelMetadataBody === undefined) {
|
|
91
|
+
throw new runtime.RequiredError('associateModelMetadataBody', 'Required parameter requestParameters.associateModelMetadataBody was null or undefined when calling associateModelMetadataWithArtifact.');
|
|
92
92
|
}
|
|
93
93
|
queryParameters = {};
|
|
94
94
|
headerParameters = {};
|
|
@@ -98,7 +98,7 @@ var ArtifactsApi = /** @class */ (function (_super) {
|
|
|
98
98
|
method: 'POST',
|
|
99
99
|
headers: headerParameters,
|
|
100
100
|
query: queryParameters,
|
|
101
|
-
body: (0, models_1.
|
|
101
|
+
body: (0, models_1.AssociateModelMetadataBodyToJSON)(requestParameters.associateModelMetadataBody),
|
|
102
102
|
}, initOverrides)];
|
|
103
103
|
case 1:
|
|
104
104
|
response = _a.sent();
|
package/dist/apis/ModelsApi.d.ts
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { CreateModelMetadataResponse, DiscoverModelsResponse, DiscoveryCriteria, GetModelResponse, IngestArtifactRequest, IngestModelArtifactResponse, ListModelsResponse
|
|
13
|
+
import { CreateModelMetadataBody, CreateModelMetadataResponse, DiscoverModelsResponse, DiscoveryCriteria, GetModelResponse, IngestArtifactRequest, IngestModelArtifactResponse, ListModelsResponse } from '../models';
|
|
14
14
|
export interface CreateModelMetadataRequest {
|
|
15
|
-
|
|
15
|
+
createModelMetadataBody: CreateModelMetadataBody;
|
|
16
16
|
}
|
|
17
17
|
export interface DiscoverModelsRequest {
|
|
18
18
|
discoveryCriteria: DiscoveryCriteria;
|
|
@@ -29,9 +29,6 @@ export interface IngestCanonicalModelRequest {
|
|
|
29
29
|
name: string;
|
|
30
30
|
ingestArtifactRequest: IngestArtifactRequest;
|
|
31
31
|
}
|
|
32
|
-
export interface ListModelsRequest {
|
|
33
|
-
modelMetadata: ModelMetadata;
|
|
34
|
-
}
|
|
35
32
|
export interface ListModelsByAuthorRequest {
|
|
36
33
|
author: string;
|
|
37
34
|
}
|
|
@@ -74,11 +71,11 @@ export declare class ModelsApi extends runtime.BaseAPI {
|
|
|
74
71
|
/**
|
|
75
72
|
* List all models
|
|
76
73
|
*/
|
|
77
|
-
listModelsRaw(
|
|
74
|
+
listModelsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<ListModelsResponse>>;
|
|
78
75
|
/**
|
|
79
76
|
* List all models
|
|
80
77
|
*/
|
|
81
|
-
listModels(
|
|
78
|
+
listModels(initOverrides?: RequestInit): Promise<ListModelsResponse>;
|
|
82
79
|
/**
|
|
83
80
|
* List models by author
|
|
84
81
|
*/
|
package/dist/apis/ModelsApi.js
CHANGED
|
@@ -84,8 +84,8 @@ var ModelsApi = /** @class */ (function (_super) {
|
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
if (requestParameters.
|
|
88
|
-
throw new runtime.RequiredError('
|
|
87
|
+
if (requestParameters.createModelMetadataBody === null || requestParameters.createModelMetadataBody === undefined) {
|
|
88
|
+
throw new runtime.RequiredError('createModelMetadataBody', 'Required parameter requestParameters.createModelMetadataBody was null or undefined when calling createModelMetadata.');
|
|
89
89
|
}
|
|
90
90
|
queryParameters = {};
|
|
91
91
|
headerParameters = {};
|
|
@@ -95,7 +95,7 @@ var ModelsApi = /** @class */ (function (_super) {
|
|
|
95
95
|
method: 'POST',
|
|
96
96
|
headers: headerParameters,
|
|
97
97
|
query: queryParameters,
|
|
98
|
-
body: (0, models_1.
|
|
98
|
+
body: (0, models_1.CreateModelMetadataBodyToJSON)(requestParameters.createModelMetadataBody),
|
|
99
99
|
}, initOverrides)];
|
|
100
100
|
case 1:
|
|
101
101
|
response = _a.sent();
|
|
@@ -278,24 +278,19 @@ var ModelsApi = /** @class */ (function (_super) {
|
|
|
278
278
|
/**
|
|
279
279
|
* List all models
|
|
280
280
|
*/
|
|
281
|
-
ModelsApi.prototype.listModelsRaw = function (
|
|
281
|
+
ModelsApi.prototype.listModelsRaw = function (initOverrides) {
|
|
282
282
|
return __awaiter(this, void 0, void 0, function () {
|
|
283
283
|
var queryParameters, headerParameters, response;
|
|
284
284
|
return __generator(this, function (_a) {
|
|
285
285
|
switch (_a.label) {
|
|
286
286
|
case 0:
|
|
287
|
-
if (requestParameters.modelMetadata === null || requestParameters.modelMetadata === undefined) {
|
|
288
|
-
throw new runtime.RequiredError('modelMetadata', 'Required parameter requestParameters.modelMetadata was null or undefined when calling listModels.');
|
|
289
|
-
}
|
|
290
287
|
queryParameters = {};
|
|
291
288
|
headerParameters = {};
|
|
292
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
293
289
|
return [4 /*yield*/, this.request({
|
|
294
290
|
path: "/models-api/models",
|
|
295
291
|
method: 'GET',
|
|
296
292
|
headers: headerParameters,
|
|
297
293
|
query: queryParameters,
|
|
298
|
-
body: (0, models_1.ModelMetadataToJSON)(requestParameters.modelMetadata),
|
|
299
294
|
}, initOverrides)];
|
|
300
295
|
case 1:
|
|
301
296
|
response = _a.sent();
|
|
@@ -307,12 +302,12 @@ var ModelsApi = /** @class */ (function (_super) {
|
|
|
307
302
|
/**
|
|
308
303
|
* List all models
|
|
309
304
|
*/
|
|
310
|
-
ModelsApi.prototype.listModels = function (
|
|
305
|
+
ModelsApi.prototype.listModels = function (initOverrides) {
|
|
311
306
|
return __awaiter(this, void 0, void 0, function () {
|
|
312
307
|
var response;
|
|
313
308
|
return __generator(this, function (_a) {
|
|
314
309
|
switch (_a.label) {
|
|
315
|
-
case 0: return [4 /*yield*/, this.listModelsRaw(
|
|
310
|
+
case 0: return [4 /*yield*/, this.listModelsRaw(initOverrides)];
|
|
316
311
|
case 1:
|
|
317
312
|
response = _a.sent();
|
|
318
313
|
return [4 /*yield*/, response.value()];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Models API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssociateModelMetadataBody
|
|
16
|
+
*/
|
|
17
|
+
export interface AssociateModelMetadataBody {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssociateModelMetadataBody
|
|
22
|
+
*/
|
|
23
|
+
author: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssociateModelMetadataBody
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AssociateModelMetadataBodyFromJSON(json: any): AssociateModelMetadataBody;
|
|
32
|
+
export declare function AssociateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateModelMetadataBody;
|
|
33
|
+
export declare function AssociateModelMetadataBodyToJSON(value?: AssociateModelMetadataBody | null): any;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
function
|
|
20
|
-
return
|
|
16
|
+
exports.AssociateModelMetadataBodyFromJSON = AssociateModelMetadataBodyFromJSON;
|
|
17
|
+
exports.AssociateModelMetadataBodyFromJSONTyped = AssociateModelMetadataBodyFromJSONTyped;
|
|
18
|
+
exports.AssociateModelMetadataBodyToJSON = AssociateModelMetadataBodyToJSON;
|
|
19
|
+
function AssociateModelMetadataBodyFromJSON(json) {
|
|
20
|
+
return AssociateModelMetadataBodyFromJSONTyped(json, false);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function AssociateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
23
|
if ((json === undefined) || (json === null)) {
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
@@ -28,7 +28,7 @@ function AssociateModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'name': json['name'],
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function AssociateModelMetadataBodyToJSON(value) {
|
|
32
32
|
if (value === undefined) {
|
|
33
33
|
return undefined;
|
|
34
34
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Models API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Locator, Platform } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Canonical
|
|
17
|
+
*/
|
|
18
|
+
export interface Canonical {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Canonical
|
|
23
|
+
*/
|
|
24
|
+
author?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof Canonical
|
|
29
|
+
*/
|
|
30
|
+
downloads?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof Canonical
|
|
35
|
+
*/
|
|
36
|
+
gated?: boolean | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof Canonical
|
|
41
|
+
*/
|
|
42
|
+
likes?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Locator}
|
|
46
|
+
* @memberof Canonical
|
|
47
|
+
*/
|
|
48
|
+
locator: Locator;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Canonical
|
|
53
|
+
*/
|
|
54
|
+
model_id: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Platform}
|
|
58
|
+
* @memberof Canonical
|
|
59
|
+
*/
|
|
60
|
+
platform: Platform;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof Canonical
|
|
65
|
+
*/
|
|
66
|
+
_private?: boolean | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Canonical
|
|
71
|
+
*/
|
|
72
|
+
sha?: string | null;
|
|
73
|
+
}
|
|
74
|
+
export declare function CanonicalFromJSON(json: any): Canonical;
|
|
75
|
+
export declare function CanonicalFromJSONTyped(json: any, ignoreDiscriminator: boolean): Canonical;
|
|
76
|
+
export declare function CanonicalToJSON(value?: Canonical | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Models API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CanonicalFromJSON = CanonicalFromJSON;
|
|
17
|
+
exports.CanonicalFromJSONTyped = CanonicalFromJSONTyped;
|
|
18
|
+
exports.CanonicalToJSON = CanonicalToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function CanonicalFromJSON(json) {
|
|
22
|
+
return CanonicalFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function CanonicalFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'author': !(0, runtime_1.exists)(json, 'author') ? undefined : json['author'],
|
|
30
|
+
'downloads': !(0, runtime_1.exists)(json, 'downloads') ? undefined : json['downloads'],
|
|
31
|
+
'gated': !(0, runtime_1.exists)(json, 'gated') ? undefined : json['gated'],
|
|
32
|
+
'likes': !(0, runtime_1.exists)(json, 'likes') ? undefined : json['likes'],
|
|
33
|
+
'locator': (0, _1.LocatorFromJSON)(json['locator']),
|
|
34
|
+
'model_id': json['model_id'],
|
|
35
|
+
'platform': (0, _1.PlatformFromJSON)(json['platform']),
|
|
36
|
+
'_private': !(0, runtime_1.exists)(json, 'private') ? undefined : json['private'],
|
|
37
|
+
'sha': !(0, runtime_1.exists)(json, 'sha') ? undefined : json['sha'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function CanonicalToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'author': value.author,
|
|
49
|
+
'downloads': value.downloads,
|
|
50
|
+
'gated': value.gated,
|
|
51
|
+
'likes': value.likes,
|
|
52
|
+
'locator': (0, _1.LocatorToJSON)(value.locator),
|
|
53
|
+
'model_id': value.model_id,
|
|
54
|
+
'platform': (0, _1.PlatformToJSON)(value.platform),
|
|
55
|
+
'private': value._private,
|
|
56
|
+
'sha': value.sha,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Models API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { HardwareRequirements, ModelIO, Task } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateModelMetadataBody
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateModelMetadataBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {any}
|
|
22
|
+
* @memberof CreateModelMetadataBody
|
|
23
|
+
*/
|
|
24
|
+
annotations?: any | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateModelMetadataBody
|
|
29
|
+
*/
|
|
30
|
+
author?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CreateModelMetadataBody
|
|
35
|
+
*/
|
|
36
|
+
bias_evaluation_score?: number | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof CreateModelMetadataBody
|
|
41
|
+
*/
|
|
42
|
+
edge_optimized?: boolean | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof CreateModelMetadataBody
|
|
47
|
+
*/
|
|
48
|
+
finetuning_datasets?: Array<string> | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateModelMetadataBody
|
|
53
|
+
*/
|
|
54
|
+
image?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof CreateModelMetadataBody
|
|
59
|
+
*/
|
|
60
|
+
inference_distributed?: boolean | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {HardwareRequirements}
|
|
64
|
+
* @memberof CreateModelMetadataBody
|
|
65
|
+
*/
|
|
66
|
+
inference_hardware?: HardwareRequirements;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof CreateModelMetadataBody
|
|
71
|
+
*/
|
|
72
|
+
inference_max_compute_utilization_percentage?: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof CreateModelMetadataBody
|
|
77
|
+
*/
|
|
78
|
+
inference_max_energy_consumption_watts?: number | null;
|
|
79
|
+
/**
|
|
80
|
+
* Inference performance fields
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof CreateModelMetadataBody
|
|
83
|
+
*/
|
|
84
|
+
inference_max_latency_ms?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof CreateModelMetadataBody
|
|
89
|
+
*/
|
|
90
|
+
inference_max_memory_usage_mb?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof CreateModelMetadataBody
|
|
95
|
+
*/
|
|
96
|
+
inference_min_throughput?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof CreateModelMetadataBody
|
|
101
|
+
*/
|
|
102
|
+
inference_precision?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<string>}
|
|
106
|
+
* @memberof CreateModelMetadataBody
|
|
107
|
+
*/
|
|
108
|
+
inference_software_dependencies?: Array<string> | null;
|
|
109
|
+
/**
|
|
110
|
+
* Arbitrary labels
|
|
111
|
+
* @type {Array<string>}
|
|
112
|
+
* @memberof CreateModelMetadataBody
|
|
113
|
+
*/
|
|
114
|
+
keywords?: Array<string> | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {Array<string>}
|
|
118
|
+
* @memberof CreateModelMetadataBody
|
|
119
|
+
*/
|
|
120
|
+
libraries?: Array<string> | null;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof CreateModelMetadataBody
|
|
125
|
+
*/
|
|
126
|
+
license?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {Array<ModelIO>}
|
|
130
|
+
* @memberof CreateModelMetadataBody
|
|
131
|
+
*/
|
|
132
|
+
model_inputs?: Array<ModelIO> | null;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {Array<ModelIO>}
|
|
136
|
+
* @memberof CreateModelMetadataBody
|
|
137
|
+
*/
|
|
138
|
+
model_outputs?: Array<ModelIO> | null;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof CreateModelMetadataBody
|
|
143
|
+
*/
|
|
144
|
+
model_type?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Architecture fields
|
|
147
|
+
* @type {boolean}
|
|
148
|
+
* @memberof CreateModelMetadataBody
|
|
149
|
+
*/
|
|
150
|
+
multi_modal?: boolean | null;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof CreateModelMetadataBody
|
|
155
|
+
*/
|
|
156
|
+
name?: string | null;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {boolean}
|
|
160
|
+
* @memberof CreateModelMetadataBody
|
|
161
|
+
*/
|
|
162
|
+
pretrained?: boolean | null;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {Array<string>}
|
|
166
|
+
* @memberof CreateModelMetadataBody
|
|
167
|
+
*/
|
|
168
|
+
pretraining_datasets?: Array<string> | null;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {boolean}
|
|
172
|
+
* @memberof CreateModelMetadataBody
|
|
173
|
+
*/
|
|
174
|
+
pruned?: boolean | null;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {boolean}
|
|
178
|
+
* @memberof CreateModelMetadataBody
|
|
179
|
+
*/
|
|
180
|
+
quantization_aware?: boolean | null;
|
|
181
|
+
/**
|
|
182
|
+
* Regulatory and Compliance Fields
|
|
183
|
+
* A vector or strings that represent regulatory standards. Ex HIPPA
|
|
184
|
+
* @type {Array<string>}
|
|
185
|
+
* @memberof CreateModelMetadataBody
|
|
186
|
+
*/
|
|
187
|
+
regulatory?: Array<string> | null;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {boolean}
|
|
191
|
+
* @memberof CreateModelMetadataBody
|
|
192
|
+
*/
|
|
193
|
+
slimmed?: boolean | null;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {boolean}
|
|
197
|
+
* @memberof CreateModelMetadataBody
|
|
198
|
+
*/
|
|
199
|
+
supports_quantization?: boolean | null;
|
|
200
|
+
/**
|
|
201
|
+
* Inference Fields
|
|
202
|
+
* @type {Array<Task>}
|
|
203
|
+
* @memberof CreateModelMetadataBody
|
|
204
|
+
*/
|
|
205
|
+
task_types?: Array<Task> | null;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof CreateModelMetadataBody
|
|
210
|
+
*/
|
|
211
|
+
tenant_id?: string | null;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {boolean}
|
|
215
|
+
* @memberof CreateModelMetadataBody
|
|
216
|
+
*/
|
|
217
|
+
training_distributed?: boolean | null;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {HardwareRequirements}
|
|
221
|
+
* @memberof CreateModelMetadataBody
|
|
222
|
+
*/
|
|
223
|
+
training_hardware?: HardwareRequirements;
|
|
224
|
+
/**
|
|
225
|
+
* Training performance fields
|
|
226
|
+
* @type {number}
|
|
227
|
+
* @memberof CreateModelMetadataBody
|
|
228
|
+
*/
|
|
229
|
+
training_max_energy_consumption_watts?: number | null;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof CreateModelMetadataBody
|
|
234
|
+
*/
|
|
235
|
+
training_precision?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* Training-related Fields
|
|
238
|
+
* @type {number}
|
|
239
|
+
* @memberof CreateModelMetadataBody
|
|
240
|
+
*/
|
|
241
|
+
training_time?: number | null;
|
|
242
|
+
}
|
|
243
|
+
export declare function CreateModelMetadataBodyFromJSON(json: any): CreateModelMetadataBody;
|
|
244
|
+
export declare function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateModelMetadataBody;
|
|
245
|
+
export declare function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody | null): any;
|