@mlhub/models-ts-sdk 0.4.0 → 0.6.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/README.md +2 -2
- package/dist/models/CreateModelMetadataBody.d.ts +12 -6
- package/dist/models/CreateModelMetadataBody.js +4 -2
- package/dist/models/DiscoveryCriterion.d.ts +6 -6
- package/dist/models/DiscoveryCriterion.js +2 -2
- package/dist/models/GetModelResponse.d.ts +3 -2
- package/dist/models/GetModelResponse.js +3 -2
- package/dist/models/ModelMetadata.d.ts +12 -6
- package/dist/models/ModelMetadata.js +4 -2
- package/package.json +1 -1
- package/src/models/CreateModelMetadataBody.ts +16 -8
- package/src/models/DiscoveryCriterion.ts +8 -8
- package/src/models/GetModelResponse.ts +11 -4
- package/src/models/ModelMetadata.ts +16 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @mlhub/models-ts-sdk@0.
|
|
1
|
+
## @mlhub/models-ts-sdk@0.6.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.6.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -28,6 +28,12 @@ export interface CreateModelMetadataBody {
|
|
|
28
28
|
* @memberof CreateModelMetadataBody
|
|
29
29
|
*/
|
|
30
30
|
bias_evaluation_score?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateModelMetadataBody
|
|
35
|
+
*/
|
|
36
|
+
description?: string | null;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {boolean}
|
|
@@ -100,12 +106,6 @@ export interface CreateModelMetadataBody {
|
|
|
100
106
|
* @memberof CreateModelMetadataBody
|
|
101
107
|
*/
|
|
102
108
|
inference_software_dependencies?: Array<string> | null;
|
|
103
|
-
/**
|
|
104
|
-
* Arbitrary labels
|
|
105
|
-
* @type {Array<string>}
|
|
106
|
-
* @memberof CreateModelMetadataBody
|
|
107
|
-
*/
|
|
108
|
-
keywords?: Array<string> | null;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
111
|
* @type {Array<string>}
|
|
@@ -191,6 +191,12 @@ export interface CreateModelMetadataBody {
|
|
|
191
191
|
* @memberof CreateModelMetadataBody
|
|
192
192
|
*/
|
|
193
193
|
supports_quantization?: boolean | null;
|
|
194
|
+
/**
|
|
195
|
+
* Arbitrary labels
|
|
196
|
+
* @type {Array<string>}
|
|
197
|
+
* @memberof CreateModelMetadataBody
|
|
198
|
+
*/
|
|
199
|
+
tags?: Array<string> | null;
|
|
194
200
|
/**
|
|
195
201
|
* Inference Fields
|
|
196
202
|
* @type {Array<Task>}
|
|
@@ -28,6 +28,7 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'annotations': !(0, runtime_1.exists)(json, 'annotations') ? undefined : json['annotations'],
|
|
30
30
|
'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
31
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
31
32
|
'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
32
33
|
'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
33
34
|
'image': !(0, runtime_1.exists)(json, 'image') ? undefined : json['image'],
|
|
@@ -40,7 +41,6 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
41
42
|
'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
42
43
|
'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
43
|
-
'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
|
|
44
44
|
'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
|
|
45
45
|
'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
|
|
46
46
|
'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
|
|
@@ -55,6 +55,7 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
|
|
56
56
|
'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
|
|
57
57
|
'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
58
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
58
59
|
'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
|
|
59
60
|
'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
60
61
|
'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
|
|
@@ -73,6 +74,7 @@ function CreateModelMetadataBodyToJSON(value) {
|
|
|
73
74
|
return {
|
|
74
75
|
'annotations': value.annotations,
|
|
75
76
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
77
|
+
'description': value.description,
|
|
76
78
|
'edge_optimized': value.edge_optimized,
|
|
77
79
|
'finetuning_datasets': value.finetuning_datasets,
|
|
78
80
|
'image': value.image,
|
|
@@ -85,7 +87,6 @@ function CreateModelMetadataBodyToJSON(value) {
|
|
|
85
87
|
'inference_min_throughput': value.inference_min_throughput,
|
|
86
88
|
'inference_precision': value.inference_precision,
|
|
87
89
|
'inference_software_dependencies': value.inference_software_dependencies,
|
|
88
|
-
'keywords': value.keywords,
|
|
89
90
|
'libraries': value.libraries,
|
|
90
91
|
'license': value.license,
|
|
91
92
|
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
|
|
@@ -100,6 +101,7 @@ function CreateModelMetadataBodyToJSON(value) {
|
|
|
100
101
|
'regulatory': value.regulatory,
|
|
101
102
|
'slimmed': value.slimmed,
|
|
102
103
|
'supports_quantization': value.supports_quantization,
|
|
104
|
+
'tags': value.tags,
|
|
103
105
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
|
|
104
106
|
'training_distributed': value.training_distributed,
|
|
105
107
|
'training_hardware': (0, _1.HardwareRequirementsToJSON)(value.training_hardware),
|
|
@@ -106,12 +106,6 @@ export interface DiscoveryCriterion {
|
|
|
106
106
|
* @memberof DiscoveryCriterion
|
|
107
107
|
*/
|
|
108
108
|
inference_software_dependencies?: Array<string> | null;
|
|
109
|
-
/**
|
|
110
|
-
* Arbitrary labels
|
|
111
|
-
* @type {Array<string>}
|
|
112
|
-
* @memberof DiscoveryCriterion
|
|
113
|
-
*/
|
|
114
|
-
keywords?: Array<string> | null;
|
|
115
109
|
/**
|
|
116
110
|
*
|
|
117
111
|
* @type {Array<string>}
|
|
@@ -197,6 +191,12 @@ export interface DiscoveryCriterion {
|
|
|
197
191
|
* @memberof DiscoveryCriterion
|
|
198
192
|
*/
|
|
199
193
|
supports_quantization?: boolean | null;
|
|
194
|
+
/**
|
|
195
|
+
* Arbitrary labels
|
|
196
|
+
* @type {Array<string>}
|
|
197
|
+
* @memberof DiscoveryCriterion
|
|
198
|
+
*/
|
|
199
|
+
tags?: Array<string> | null;
|
|
200
200
|
/**
|
|
201
201
|
* Inference Fields
|
|
202
202
|
* @type {Array<Task>}
|
|
@@ -41,7 +41,6 @@ function DiscoveryCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
42
42
|
'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
43
43
|
'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
44
|
-
'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
|
|
45
44
|
'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
|
|
46
45
|
'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
|
|
47
46
|
'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
|
|
@@ -56,6 +55,7 @@ function DiscoveryCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
55
|
'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
|
|
57
56
|
'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
|
|
58
57
|
'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
58
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
59
59
|
'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
|
|
60
60
|
'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
61
61
|
'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
|
|
@@ -88,7 +88,6 @@ function DiscoveryCriterionToJSON(value) {
|
|
|
88
88
|
'inference_min_throughput': value.inference_min_throughput,
|
|
89
89
|
'inference_precision': value.inference_precision,
|
|
90
90
|
'inference_software_dependencies': value.inference_software_dependencies,
|
|
91
|
-
'keywords': value.keywords,
|
|
92
91
|
'libraries': value.libraries,
|
|
93
92
|
'license': value.license,
|
|
94
93
|
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
|
|
@@ -103,6 +102,7 @@ function DiscoveryCriterionToJSON(value) {
|
|
|
103
102
|
'regulatory': value.regulatory,
|
|
104
103
|
'slimmed': value.slimmed,
|
|
105
104
|
'supports_quantization': value.supports_quantization,
|
|
105
|
+
'tags': value.tags,
|
|
106
106
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
|
|
107
107
|
'training_distributed': value.training_distributed,
|
|
108
108
|
'training_hardware': (0, _1.HardwareRequirementsToJSON)(value.training_hardware),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ModelMetadata } from './';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -29,10 +30,10 @@ export interface GetModelResponse {
|
|
|
29
30
|
metadata: object;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {ModelMetadata}
|
|
33
34
|
* @memberof GetModelResponse
|
|
34
35
|
*/
|
|
35
|
-
result:
|
|
36
|
+
result: ModelMetadata;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {number}
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.GetModelResponseFromJSON = GetModelResponseFromJSON;
|
|
17
17
|
exports.GetModelResponseFromJSONTyped = GetModelResponseFromJSONTyped;
|
|
18
18
|
exports.GetModelResponseToJSON = GetModelResponseToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
19
20
|
function GetModelResponseFromJSON(json) {
|
|
20
21
|
return GetModelResponseFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -26,7 +27,7 @@ function GetModelResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
return {
|
|
27
28
|
'message': json['message'],
|
|
28
29
|
'metadata': json['metadata'],
|
|
29
|
-
'result': json['result'],
|
|
30
|
+
'result': (0, _1.ModelMetadataFromJSON)(json['result']),
|
|
30
31
|
'status': json['status'],
|
|
31
32
|
'version': json['version'],
|
|
32
33
|
};
|
|
@@ -41,7 +42,7 @@ function GetModelResponseToJSON(value) {
|
|
|
41
42
|
return {
|
|
42
43
|
'message': value.message,
|
|
43
44
|
'metadata': value.metadata,
|
|
44
|
-
'result': value.result,
|
|
45
|
+
'result': (0, _1.ModelMetadataToJSON)(value.result),
|
|
45
46
|
'status': value.status,
|
|
46
47
|
'version': value.version,
|
|
47
48
|
};
|
|
@@ -40,6 +40,12 @@ export interface ModelMetadata {
|
|
|
40
40
|
* @memberof ModelMetadata
|
|
41
41
|
*/
|
|
42
42
|
canonical?: Canonical;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ModelMetadata
|
|
47
|
+
*/
|
|
48
|
+
description?: string | null;
|
|
43
49
|
/**
|
|
44
50
|
*
|
|
45
51
|
* @type {boolean}
|
|
@@ -112,12 +118,6 @@ export interface ModelMetadata {
|
|
|
112
118
|
* @memberof ModelMetadata
|
|
113
119
|
*/
|
|
114
120
|
inference_software_dependencies?: Array<string> | null;
|
|
115
|
-
/**
|
|
116
|
-
* Arbitrary labels
|
|
117
|
-
* @type {Array<string>}
|
|
118
|
-
* @memberof ModelMetadata
|
|
119
|
-
*/
|
|
120
|
-
keywords?: Array<string> | null;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
* @type {Array<string>}
|
|
@@ -203,6 +203,12 @@ export interface ModelMetadata {
|
|
|
203
203
|
* @memberof ModelMetadata
|
|
204
204
|
*/
|
|
205
205
|
supports_quantization?: boolean | null;
|
|
206
|
+
/**
|
|
207
|
+
* Arbitrary labels
|
|
208
|
+
* @type {Array<string>}
|
|
209
|
+
* @memberof ModelMetadata
|
|
210
|
+
*/
|
|
211
|
+
tags?: Array<string> | null;
|
|
206
212
|
/**
|
|
207
213
|
* Inference Fields
|
|
208
214
|
* @type {Array<Task>}
|
|
@@ -30,6 +30,7 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'author': json['author'],
|
|
31
31
|
'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
32
32
|
'canonical': !(0, runtime_1.exists)(json, 'canonical') ? undefined : (0, _1.CanonicalFromJSON)(json['canonical']),
|
|
33
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
33
34
|
'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
34
35
|
'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
35
36
|
'image': !(0, runtime_1.exists)(json, 'image') ? undefined : json['image'],
|
|
@@ -42,7 +43,6 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
43
44
|
'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
44
45
|
'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
45
|
-
'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
|
|
46
46
|
'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
|
|
47
47
|
'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
|
|
48
48
|
'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
|
|
@@ -57,6 +57,7 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
|
|
58
58
|
'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
|
|
59
59
|
'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
60
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
60
61
|
'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
|
|
61
62
|
'tenant_id': json['tenant_id'],
|
|
62
63
|
'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
@@ -78,6 +79,7 @@ function ModelMetadataToJSON(value) {
|
|
|
78
79
|
'author': value.author,
|
|
79
80
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
80
81
|
'canonical': (0, _1.CanonicalToJSON)(value.canonical),
|
|
82
|
+
'description': value.description,
|
|
81
83
|
'edge_optimized': value.edge_optimized,
|
|
82
84
|
'finetuning_datasets': value.finetuning_datasets,
|
|
83
85
|
'image': value.image,
|
|
@@ -90,7 +92,6 @@ function ModelMetadataToJSON(value) {
|
|
|
90
92
|
'inference_min_throughput': value.inference_min_throughput,
|
|
91
93
|
'inference_precision': value.inference_precision,
|
|
92
94
|
'inference_software_dependencies': value.inference_software_dependencies,
|
|
93
|
-
'keywords': value.keywords,
|
|
94
95
|
'libraries': value.libraries,
|
|
95
96
|
'license': value.license,
|
|
96
97
|
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
|
|
@@ -105,6 +106,7 @@ function ModelMetadataToJSON(value) {
|
|
|
105
106
|
'regulatory': value.regulatory,
|
|
106
107
|
'slimmed': value.slimmed,
|
|
107
108
|
'supports_quantization': value.supports_quantization,
|
|
109
|
+
'tags': value.tags,
|
|
108
110
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
|
|
109
111
|
'tenant_id': value.tenant_id,
|
|
110
112
|
'training_distributed': value.training_distributed,
|
package/package.json
CHANGED
|
@@ -46,6 +46,12 @@ export interface CreateModelMetadataBody {
|
|
|
46
46
|
* @memberof CreateModelMetadataBody
|
|
47
47
|
*/
|
|
48
48
|
bias_evaluation_score?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateModelMetadataBody
|
|
53
|
+
*/
|
|
54
|
+
description?: string | null;
|
|
49
55
|
/**
|
|
50
56
|
*
|
|
51
57
|
* @type {boolean}
|
|
@@ -118,12 +124,6 @@ export interface CreateModelMetadataBody {
|
|
|
118
124
|
* @memberof CreateModelMetadataBody
|
|
119
125
|
*/
|
|
120
126
|
inference_software_dependencies?: Array<string> | null;
|
|
121
|
-
/**
|
|
122
|
-
* Arbitrary labels
|
|
123
|
-
* @type {Array<string>}
|
|
124
|
-
* @memberof CreateModelMetadataBody
|
|
125
|
-
*/
|
|
126
|
-
keywords?: Array<string> | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {Array<string>}
|
|
@@ -209,6 +209,12 @@ export interface CreateModelMetadataBody {
|
|
|
209
209
|
* @memberof CreateModelMetadataBody
|
|
210
210
|
*/
|
|
211
211
|
supports_quantization?: boolean | null;
|
|
212
|
+
/**
|
|
213
|
+
* Arbitrary labels
|
|
214
|
+
* @type {Array<string>}
|
|
215
|
+
* @memberof CreateModelMetadataBody
|
|
216
|
+
*/
|
|
217
|
+
tags?: Array<string> | null;
|
|
212
218
|
/**
|
|
213
219
|
* Inference Fields
|
|
214
220
|
* @type {Array<Task>}
|
|
@@ -259,6 +265,7 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
259
265
|
|
|
260
266
|
'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
|
|
261
267
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
268
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
262
269
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
263
270
|
'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
264
271
|
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
@@ -271,7 +278,6 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
271
278
|
'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
272
279
|
'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
273
280
|
'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
274
|
-
'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
|
|
275
281
|
'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
|
|
276
282
|
'license': !exists(json, 'license') ? undefined : json['license'],
|
|
277
283
|
'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
|
|
@@ -286,6 +292,7 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
286
292
|
'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
|
|
287
293
|
'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
|
|
288
294
|
'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
295
|
+
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
289
296
|
'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
|
|
290
297
|
'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
291
298
|
'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
|
|
@@ -306,6 +313,7 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
|
|
|
306
313
|
|
|
307
314
|
'annotations': value.annotations,
|
|
308
315
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
316
|
+
'description': value.description,
|
|
309
317
|
'edge_optimized': value.edge_optimized,
|
|
310
318
|
'finetuning_datasets': value.finetuning_datasets,
|
|
311
319
|
'image': value.image,
|
|
@@ -318,7 +326,6 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
|
|
|
318
326
|
'inference_min_throughput': value.inference_min_throughput,
|
|
319
327
|
'inference_precision': value.inference_precision,
|
|
320
328
|
'inference_software_dependencies': value.inference_software_dependencies,
|
|
321
|
-
'keywords': value.keywords,
|
|
322
329
|
'libraries': value.libraries,
|
|
323
330
|
'license': value.license,
|
|
324
331
|
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
|
|
@@ -333,6 +340,7 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
|
|
|
333
340
|
'regulatory': value.regulatory,
|
|
334
341
|
'slimmed': value.slimmed,
|
|
335
342
|
'supports_quantization': value.supports_quantization,
|
|
343
|
+
'tags': value.tags,
|
|
336
344
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
|
|
337
345
|
'training_distributed': value.training_distributed,
|
|
338
346
|
'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
|
|
@@ -124,12 +124,6 @@ export interface DiscoveryCriterion {
|
|
|
124
124
|
* @memberof DiscoveryCriterion
|
|
125
125
|
*/
|
|
126
126
|
inference_software_dependencies?: Array<string> | null;
|
|
127
|
-
/**
|
|
128
|
-
* Arbitrary labels
|
|
129
|
-
* @type {Array<string>}
|
|
130
|
-
* @memberof DiscoveryCriterion
|
|
131
|
-
*/
|
|
132
|
-
keywords?: Array<string> | null;
|
|
133
127
|
/**
|
|
134
128
|
*
|
|
135
129
|
* @type {Array<string>}
|
|
@@ -215,6 +209,12 @@ export interface DiscoveryCriterion {
|
|
|
215
209
|
* @memberof DiscoveryCriterion
|
|
216
210
|
*/
|
|
217
211
|
supports_quantization?: boolean | null;
|
|
212
|
+
/**
|
|
213
|
+
* Arbitrary labels
|
|
214
|
+
* @type {Array<string>}
|
|
215
|
+
* @memberof DiscoveryCriterion
|
|
216
|
+
*/
|
|
217
|
+
tags?: Array<string> | null;
|
|
218
218
|
/**
|
|
219
219
|
* Inference Fields
|
|
220
220
|
* @type {Array<Task>}
|
|
@@ -284,7 +284,6 @@ export function DiscoveryCriterionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
284
284
|
'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
285
285
|
'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
286
286
|
'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
287
|
-
'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
|
|
288
287
|
'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
|
|
289
288
|
'license': !exists(json, 'license') ? undefined : json['license'],
|
|
290
289
|
'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
|
|
@@ -299,6 +298,7 @@ export function DiscoveryCriterionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
299
298
|
'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
|
|
300
299
|
'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
|
|
301
300
|
'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
301
|
+
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
302
302
|
'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
|
|
303
303
|
'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
304
304
|
'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
|
|
@@ -333,7 +333,6 @@ export function DiscoveryCriterionToJSON(value?: DiscoveryCriterion | null): any
|
|
|
333
333
|
'inference_min_throughput': value.inference_min_throughput,
|
|
334
334
|
'inference_precision': value.inference_precision,
|
|
335
335
|
'inference_software_dependencies': value.inference_software_dependencies,
|
|
336
|
-
'keywords': value.keywords,
|
|
337
336
|
'libraries': value.libraries,
|
|
338
337
|
'license': value.license,
|
|
339
338
|
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
|
|
@@ -348,6 +347,7 @@ export function DiscoveryCriterionToJSON(value?: DiscoveryCriterion | null): any
|
|
|
348
347
|
'regulatory': value.regulatory,
|
|
349
348
|
'slimmed': value.slimmed,
|
|
350
349
|
'supports_quantization': value.supports_quantization,
|
|
350
|
+
'tags': value.tags,
|
|
351
351
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
|
|
352
352
|
'training_distributed': value.training_distributed,
|
|
353
353
|
'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ModelMetadata,
|
|
18
|
+
ModelMetadataFromJSON,
|
|
19
|
+
ModelMetadataFromJSONTyped,
|
|
20
|
+
ModelMetadataToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -33,10 +40,10 @@ export interface GetModelResponse {
|
|
|
33
40
|
metadata: object;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
|
-
* @type {
|
|
43
|
+
* @type {ModelMetadata}
|
|
37
44
|
* @memberof GetModelResponse
|
|
38
45
|
*/
|
|
39
|
-
result:
|
|
46
|
+
result: ModelMetadata;
|
|
40
47
|
/**
|
|
41
48
|
*
|
|
42
49
|
* @type {number}
|
|
@@ -63,7 +70,7 @@ export function GetModelResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
63
70
|
|
|
64
71
|
'message': json['message'],
|
|
65
72
|
'metadata': json['metadata'],
|
|
66
|
-
'result': json['result'],
|
|
73
|
+
'result': ModelMetadataFromJSON(json['result']),
|
|
67
74
|
'status': json['status'],
|
|
68
75
|
'version': json['version'],
|
|
69
76
|
};
|
|
@@ -80,7 +87,7 @@ export function GetModelResponseToJSON(value?: GetModelResponse | null): any {
|
|
|
80
87
|
|
|
81
88
|
'message': value.message,
|
|
82
89
|
'metadata': value.metadata,
|
|
83
|
-
'result': value.result,
|
|
90
|
+
'result': ModelMetadataToJSON(value.result),
|
|
84
91
|
'status': value.status,
|
|
85
92
|
'version': value.version,
|
|
86
93
|
};
|
|
@@ -62,6 +62,12 @@ export interface ModelMetadata {
|
|
|
62
62
|
* @memberof ModelMetadata
|
|
63
63
|
*/
|
|
64
64
|
canonical?: Canonical;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ModelMetadata
|
|
69
|
+
*/
|
|
70
|
+
description?: string | null;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {boolean}
|
|
@@ -134,12 +140,6 @@ export interface ModelMetadata {
|
|
|
134
140
|
* @memberof ModelMetadata
|
|
135
141
|
*/
|
|
136
142
|
inference_software_dependencies?: Array<string> | null;
|
|
137
|
-
/**
|
|
138
|
-
* Arbitrary labels
|
|
139
|
-
* @type {Array<string>}
|
|
140
|
-
* @memberof ModelMetadata
|
|
141
|
-
*/
|
|
142
|
-
keywords?: Array<string> | null;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
145
|
* @type {Array<string>}
|
|
@@ -225,6 +225,12 @@ export interface ModelMetadata {
|
|
|
225
225
|
* @memberof ModelMetadata
|
|
226
226
|
*/
|
|
227
227
|
supports_quantization?: boolean | null;
|
|
228
|
+
/**
|
|
229
|
+
* Arbitrary labels
|
|
230
|
+
* @type {Array<string>}
|
|
231
|
+
* @memberof ModelMetadata
|
|
232
|
+
*/
|
|
233
|
+
tags?: Array<string> | null;
|
|
228
234
|
/**
|
|
229
235
|
* Inference Fields
|
|
230
236
|
* @type {Array<Task>}
|
|
@@ -283,6 +289,7 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
283
289
|
'author': json['author'],
|
|
284
290
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
285
291
|
'canonical': !exists(json, 'canonical') ? undefined : CanonicalFromJSON(json['canonical']),
|
|
292
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
286
293
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
287
294
|
'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
288
295
|
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
@@ -295,7 +302,6 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
295
302
|
'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
296
303
|
'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
297
304
|
'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
298
|
-
'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
|
|
299
305
|
'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
|
|
300
306
|
'license': !exists(json, 'license') ? undefined : json['license'],
|
|
301
307
|
'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
|
|
@@ -310,6 +316,7 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
310
316
|
'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
|
|
311
317
|
'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
|
|
312
318
|
'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
319
|
+
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
313
320
|
'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
|
|
314
321
|
'tenant_id': json['tenant_id'],
|
|
315
322
|
'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
@@ -333,6 +340,7 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
|
|
|
333
340
|
'author': value.author,
|
|
334
341
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
335
342
|
'canonical': CanonicalToJSON(value.canonical),
|
|
343
|
+
'description': value.description,
|
|
336
344
|
'edge_optimized': value.edge_optimized,
|
|
337
345
|
'finetuning_datasets': value.finetuning_datasets,
|
|
338
346
|
'image': value.image,
|
|
@@ -345,7 +353,6 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
|
|
|
345
353
|
'inference_min_throughput': value.inference_min_throughput,
|
|
346
354
|
'inference_precision': value.inference_precision,
|
|
347
355
|
'inference_software_dependencies': value.inference_software_dependencies,
|
|
348
|
-
'keywords': value.keywords,
|
|
349
356
|
'libraries': value.libraries,
|
|
350
357
|
'license': value.license,
|
|
351
358
|
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
|
|
@@ -360,6 +367,7 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
|
|
|
360
367
|
'regulatory': value.regulatory,
|
|
361
368
|
'slimmed': value.slimmed,
|
|
362
369
|
'supports_quantization': value.supports_quantization,
|
|
370
|
+
'tags': value.tags,
|
|
363
371
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
|
|
364
372
|
'tenant_id': value.tenant_id,
|
|
365
373
|
'training_distributed': value.training_distributed,
|