@gpuai/sdk 0.5.1 → 0.5.3

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.
Files changed (36) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/InferenceApi.d.ts +60 -0
  4. package/dist/apis/InferenceApi.js +126 -1
  5. package/dist/esm/apis/InferenceApi.d.ts +60 -0
  6. package/dist/esm/apis/InferenceApi.js +125 -0
  7. package/dist/esm/models/DataRetention.d.ts +51 -0
  8. package/dist/esm/models/DataRetention.js +57 -0
  9. package/dist/esm/models/Model.d.ts +6 -0
  10. package/dist/esm/models/Model.js +2 -0
  11. package/dist/esm/models/UpdateDataRetentionRequest.d.ts +32 -0
  12. package/dist/esm/models/UpdateDataRetentionRequest.js +43 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/esm/runtime.js +1 -1
  16. package/dist/models/DataRetention.d.ts +51 -0
  17. package/dist/models/DataRetention.js +65 -0
  18. package/dist/models/Model.d.ts +6 -0
  19. package/dist/models/Model.js +2 -0
  20. package/dist/models/UpdateDataRetentionRequest.d.ts +32 -0
  21. package/dist/models/UpdateDataRetentionRequest.js +50 -0
  22. package/dist/models/index.d.ts +2 -0
  23. package/dist/models/index.js +2 -0
  24. package/dist/runtime.js +1 -1
  25. package/docs/DataRetention.md +38 -0
  26. package/docs/FineTuningApi.md +2 -2
  27. package/docs/InferenceApi.md +163 -12
  28. package/docs/Model.md +2 -0
  29. package/docs/UpdateDataRetentionRequest.md +34 -0
  30. package/package.json +1 -1
  31. package/src/apis/InferenceApi.ts +162 -0
  32. package/src/models/DataRetention.ts +95 -0
  33. package/src/models/Model.ts +8 -0
  34. package/src/models/UpdateDataRetentionRequest.ts +66 -0
  35. package/src/models/index.ts +2 -0
  36. package/src/runtime.ts +1 -1
@@ -0,0 +1,51 @@
1
+ /**
2
+ * GPU.ai Public Developer API
3
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@gpu.ai
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 DataRetention
16
+ */
17
+ export interface DataRetention {
18
+ /**
19
+ *
20
+ * @type {DataRetentionObjectEnum}
21
+ * @memberof DataRetention
22
+ */
23
+ object: DataRetentionObjectEnum;
24
+ /**
25
+ * True when the org's inference requests route only to zero-data-retention model hosts.
26
+ * @type {boolean}
27
+ * @memberof DataRetention
28
+ */
29
+ zeroDataRetention: boolean;
30
+ /**
31
+ * When the setting last changed; absent if it never has.
32
+ * @type {Date}
33
+ * @memberof DataRetention
34
+ */
35
+ updatedAt?: Date;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const DataRetentionObjectEnum: {
41
+ readonly OrganizationDataRetention: "organization.data_retention";
42
+ };
43
+ export type DataRetentionObjectEnum = typeof DataRetentionObjectEnum[keyof typeof DataRetentionObjectEnum];
44
+ /**
45
+ * Check if a given object implements the DataRetention interface.
46
+ */
47
+ export declare function instanceOfDataRetention(value: object): value is DataRetention;
48
+ export declare function DataRetentionFromJSON(json: any): DataRetention;
49
+ export declare function DataRetentionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataRetention;
50
+ export declare function DataRetentionToJSON(json: any): DataRetention;
51
+ export declare function DataRetentionToJSONTyped(value?: DataRetention | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const DataRetentionObjectEnum = {
18
+ OrganizationDataRetention: 'organization.data_retention'
19
+ };
20
+ /**
21
+ * Check if a given object implements the DataRetention interface.
22
+ */
23
+ export function instanceOfDataRetention(value) {
24
+ if (!('object' in value) || value['object'] === undefined)
25
+ return false;
26
+ if (value['object'] !== 'organization.data_retention')
27
+ return false;
28
+ if ((!('zeroDataRetention' in value) && !('zero_data_retention' in value)) || (value['zeroDataRetention'] === undefined && value['zero_data_retention'] === undefined))
29
+ return false;
30
+ return true;
31
+ }
32
+ export function DataRetentionFromJSON(json) {
33
+ return DataRetentionFromJSONTyped(json, false);
34
+ }
35
+ export function DataRetentionFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'object': json['object'],
41
+ 'zeroDataRetention': json['zero_data_retention'],
42
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
43
+ };
44
+ }
45
+ export function DataRetentionToJSON(json) {
46
+ return DataRetentionToJSONTyped(json, false);
47
+ }
48
+ export function DataRetentionToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'object': value['object'],
54
+ 'zero_data_retention': value['zeroDataRetention'],
55
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
56
+ };
57
+ }
@@ -83,6 +83,12 @@ export interface Model {
83
83
  * @memberof Model
84
84
  */
85
85
  supportsStructuredOutputs?: boolean;
86
+ /**
87
+ * True when this model and tier can be served with zero data retention: at least one model host keeps no prompt or output content. Only these models are callable by an org with zero data retention on, or with the X-GPUAI-Zero-Data-Retention header. Always false for video.
88
+ * @type {boolean}
89
+ * @memberof Model
90
+ */
91
+ zeroDataRetention?: boolean;
86
92
  /**
87
93
  * Typed parameter descriptors for media (image/video) models — name, type, enum/bounds/default. Playgrounds render input forms from these.
88
94
  * @type {Array<ModelParametersInner>}
@@ -75,6 +75,7 @@ export function ModelFromJSONTyped(json, ignoreDiscriminator) {
75
75
  'supportedParameters': json['supported_parameters'] == null ? undefined : json['supported_parameters'],
76
76
  'supportsTools': json['supports_tools'] == null ? undefined : json['supports_tools'],
77
77
  'supportsStructuredOutputs': json['supports_structured_outputs'] == null ? undefined : json['supports_structured_outputs'],
78
+ 'zeroDataRetention': json['zero_data_retention'] == null ? undefined : json['zero_data_retention'],
78
79
  'parameters': json['parameters'] == null ? undefined : (json['parameters'].map(ModelParametersInnerFromJSON)),
79
80
  'pricing': ModelPricingFromJSON(json['pricing']),
80
81
  'aliases': json['aliases'] == null ? undefined : json['aliases'],
@@ -102,6 +103,7 @@ export function ModelToJSONTyped(value, ignoreDiscriminator = false) {
102
103
  'supported_parameters': value['supportedParameters'],
103
104
  'supports_tools': value['supportsTools'],
104
105
  'supports_structured_outputs': value['supportsStructuredOutputs'],
106
+ 'zero_data_retention': value['zeroDataRetention'],
105
107
  'parameters': value['parameters'] == null ? undefined : (value['parameters'].map(ModelParametersInnerToJSON)),
106
108
  'pricing': ModelPricingToJSON(value['pricing']),
107
109
  'aliases': value['aliases'],
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GPU.ai Public Developer API
3
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@gpu.ai
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 UpdateDataRetentionRequest
16
+ */
17
+ export interface UpdateDataRetentionRequest {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateDataRetentionRequest
22
+ */
23
+ zeroDataRetention: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateDataRetentionRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateDataRetentionRequest(value: object): value is UpdateDataRetentionRequest;
29
+ export declare function UpdateDataRetentionRequestFromJSON(json: any): UpdateDataRetentionRequest;
30
+ export declare function UpdateDataRetentionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDataRetentionRequest;
31
+ export declare function UpdateDataRetentionRequestToJSON(json: any): UpdateDataRetentionRequest;
32
+ export declare function UpdateDataRetentionRequestToJSONTyped(value?: UpdateDataRetentionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the UpdateDataRetentionRequest interface.
16
+ */
17
+ export function instanceOfUpdateDataRetentionRequest(value) {
18
+ if ((!('zeroDataRetention' in value) && !('zero_data_retention' in value)) || (value['zeroDataRetention'] === undefined && value['zero_data_retention'] === undefined))
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UpdateDataRetentionRequestFromJSON(json) {
23
+ return UpdateDataRetentionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateDataRetentionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'zeroDataRetention': json['zero_data_retention'],
31
+ };
32
+ }
33
+ export function UpdateDataRetentionRequestToJSON(json) {
34
+ return UpdateDataRetentionRequestToJSONTyped(json, false);
35
+ }
36
+ export function UpdateDataRetentionRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'zero_data_retention': value['zeroDataRetention'],
42
+ };
43
+ }
@@ -35,6 +35,7 @@ export * from './CreateRegistryCredentialRequest';
35
35
  export * from './CreateSshKeyRequest';
36
36
  export * from './CreateWebhookEndpointRequest';
37
37
  export * from './CryptoDeposit';
38
+ export * from './DataRetention';
38
39
  export * from './DedicatedIPRequest';
39
40
  export * from './Embedding';
40
41
  export * from './EmbeddingsRequest';
@@ -110,6 +111,7 @@ export * from './TemplateEnvInner';
110
111
  export * from './TemplateList';
111
112
  export * from './TemplatePortsInner';
112
113
  export * from './UpdateBillingDetailsRequest';
114
+ export * from './UpdateDataRetentionRequest';
113
115
  export * from './UpdateInstanceRequest';
114
116
  export * from './UpdateSpendingLimitRequest';
115
117
  export * from './Usage';
@@ -37,6 +37,7 @@ export * from './CreateRegistryCredentialRequest';
37
37
  export * from './CreateSshKeyRequest';
38
38
  export * from './CreateWebhookEndpointRequest';
39
39
  export * from './CryptoDeposit';
40
+ export * from './DataRetention';
40
41
  export * from './DedicatedIPRequest';
41
42
  export * from './Embedding';
42
43
  export * from './EmbeddingsRequest';
@@ -112,6 +113,7 @@ export * from './TemplateEnvInner';
112
113
  export * from './TemplateList';
113
114
  export * from './TemplatePortsInner';
114
115
  export * from './UpdateBillingDetailsRequest';
116
+ export * from './UpdateDataRetentionRequest';
115
117
  export * from './UpdateInstanceRequest';
116
118
  export * from './UpdateSpendingLimitRequest';
117
119
  export * from './Usage';
@@ -61,7 +61,7 @@ export class Configuration {
61
61
  return undefined;
62
62
  }
63
63
  get headers() {
64
- return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.1' }, this.configuration.headers);
64
+ return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.3' }, this.configuration.headers);
65
65
  }
66
66
  get credentials() {
67
67
  return this.configuration.credentials;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * GPU.ai Public Developer API
3
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@gpu.ai
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 DataRetention
16
+ */
17
+ export interface DataRetention {
18
+ /**
19
+ *
20
+ * @type {DataRetentionObjectEnum}
21
+ * @memberof DataRetention
22
+ */
23
+ object: DataRetentionObjectEnum;
24
+ /**
25
+ * True when the org's inference requests route only to zero-data-retention model hosts.
26
+ * @type {boolean}
27
+ * @memberof DataRetention
28
+ */
29
+ zeroDataRetention: boolean;
30
+ /**
31
+ * When the setting last changed; absent if it never has.
32
+ * @type {Date}
33
+ * @memberof DataRetention
34
+ */
35
+ updatedAt?: Date;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const DataRetentionObjectEnum: {
41
+ readonly OrganizationDataRetention: "organization.data_retention";
42
+ };
43
+ export type DataRetentionObjectEnum = typeof DataRetentionObjectEnum[keyof typeof DataRetentionObjectEnum];
44
+ /**
45
+ * Check if a given object implements the DataRetention interface.
46
+ */
47
+ export declare function instanceOfDataRetention(value: object): value is DataRetention;
48
+ export declare function DataRetentionFromJSON(json: any): DataRetention;
49
+ export declare function DataRetentionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataRetention;
50
+ export declare function DataRetentionToJSON(json: any): DataRetention;
51
+ export declare function DataRetentionToJSONTyped(value?: DataRetention | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GPU.ai Public Developer API
6
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@gpu.ai
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.DataRetentionObjectEnum = void 0;
17
+ exports.instanceOfDataRetention = instanceOfDataRetention;
18
+ exports.DataRetentionFromJSON = DataRetentionFromJSON;
19
+ exports.DataRetentionFromJSONTyped = DataRetentionFromJSONTyped;
20
+ exports.DataRetentionToJSON = DataRetentionToJSON;
21
+ exports.DataRetentionToJSONTyped = DataRetentionToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DataRetentionObjectEnum = {
26
+ OrganizationDataRetention: 'organization.data_retention'
27
+ };
28
+ /**
29
+ * Check if a given object implements the DataRetention interface.
30
+ */
31
+ function instanceOfDataRetention(value) {
32
+ if (!('object' in value) || value['object'] === undefined)
33
+ return false;
34
+ if (value['object'] !== 'organization.data_retention')
35
+ return false;
36
+ if ((!('zeroDataRetention' in value) && !('zero_data_retention' in value)) || (value['zeroDataRetention'] === undefined && value['zero_data_retention'] === undefined))
37
+ return false;
38
+ return true;
39
+ }
40
+ function DataRetentionFromJSON(json) {
41
+ return DataRetentionFromJSONTyped(json, false);
42
+ }
43
+ function DataRetentionFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'object': json['object'],
49
+ 'zeroDataRetention': json['zero_data_retention'],
50
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
51
+ };
52
+ }
53
+ function DataRetentionToJSON(json) {
54
+ return DataRetentionToJSONTyped(json, false);
55
+ }
56
+ function DataRetentionToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'object': value['object'],
62
+ 'zero_data_retention': value['zeroDataRetention'],
63
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
64
+ };
65
+ }
@@ -83,6 +83,12 @@ export interface Model {
83
83
  * @memberof Model
84
84
  */
85
85
  supportsStructuredOutputs?: boolean;
86
+ /**
87
+ * True when this model and tier can be served with zero data retention: at least one model host keeps no prompt or output content. Only these models are callable by an org with zero data retention on, or with the X-GPUAI-Zero-Data-Retention header. Always false for video.
88
+ * @type {boolean}
89
+ * @memberof Model
90
+ */
91
+ zeroDataRetention?: boolean;
86
92
  /**
87
93
  * Typed parameter descriptors for media (image/video) models — name, type, enum/bounds/default. Playgrounds render input forms from these.
88
94
  * @type {Array<ModelParametersInner>}
@@ -83,6 +83,7 @@ function ModelFromJSONTyped(json, ignoreDiscriminator) {
83
83
  'supportedParameters': json['supported_parameters'] == null ? undefined : json['supported_parameters'],
84
84
  'supportsTools': json['supports_tools'] == null ? undefined : json['supports_tools'],
85
85
  'supportsStructuredOutputs': json['supports_structured_outputs'] == null ? undefined : json['supports_structured_outputs'],
86
+ 'zeroDataRetention': json['zero_data_retention'] == null ? undefined : json['zero_data_retention'],
86
87
  'parameters': json['parameters'] == null ? undefined : (json['parameters'].map(ModelParametersInner_1.ModelParametersInnerFromJSON)),
87
88
  'pricing': (0, ModelPricing_1.ModelPricingFromJSON)(json['pricing']),
88
89
  'aliases': json['aliases'] == null ? undefined : json['aliases'],
@@ -110,6 +111,7 @@ function ModelToJSONTyped(value, ignoreDiscriminator = false) {
110
111
  'supported_parameters': value['supportedParameters'],
111
112
  'supports_tools': value['supportsTools'],
112
113
  'supports_structured_outputs': value['supportsStructuredOutputs'],
114
+ 'zero_data_retention': value['zeroDataRetention'],
113
115
  'parameters': value['parameters'] == null ? undefined : (value['parameters'].map(ModelParametersInner_1.ModelParametersInnerToJSON)),
114
116
  'pricing': (0, ModelPricing_1.ModelPricingToJSON)(value['pricing']),
115
117
  'aliases': value['aliases'],
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GPU.ai Public Developer API
3
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@gpu.ai
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 UpdateDataRetentionRequest
16
+ */
17
+ export interface UpdateDataRetentionRequest {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateDataRetentionRequest
22
+ */
23
+ zeroDataRetention: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateDataRetentionRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateDataRetentionRequest(value: object): value is UpdateDataRetentionRequest;
29
+ export declare function UpdateDataRetentionRequestFromJSON(json: any): UpdateDataRetentionRequest;
30
+ export declare function UpdateDataRetentionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDataRetentionRequest;
31
+ export declare function UpdateDataRetentionRequestToJSON(json: any): UpdateDataRetentionRequest;
32
+ export declare function UpdateDataRetentionRequestToJSONTyped(value?: UpdateDataRetentionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GPU.ai Public Developer API
6
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@gpu.ai
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.instanceOfUpdateDataRetentionRequest = instanceOfUpdateDataRetentionRequest;
17
+ exports.UpdateDataRetentionRequestFromJSON = UpdateDataRetentionRequestFromJSON;
18
+ exports.UpdateDataRetentionRequestFromJSONTyped = UpdateDataRetentionRequestFromJSONTyped;
19
+ exports.UpdateDataRetentionRequestToJSON = UpdateDataRetentionRequestToJSON;
20
+ exports.UpdateDataRetentionRequestToJSONTyped = UpdateDataRetentionRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateDataRetentionRequest interface.
23
+ */
24
+ function instanceOfUpdateDataRetentionRequest(value) {
25
+ if ((!('zeroDataRetention' in value) && !('zero_data_retention' in value)) || (value['zeroDataRetention'] === undefined && value['zero_data_retention'] === undefined))
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateDataRetentionRequestFromJSON(json) {
30
+ return UpdateDataRetentionRequestFromJSONTyped(json, false);
31
+ }
32
+ function UpdateDataRetentionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'zeroDataRetention': json['zero_data_retention'],
38
+ };
39
+ }
40
+ function UpdateDataRetentionRequestToJSON(json) {
41
+ return UpdateDataRetentionRequestToJSONTyped(json, false);
42
+ }
43
+ function UpdateDataRetentionRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'zero_data_retention': value['zeroDataRetention'],
49
+ };
50
+ }
@@ -35,6 +35,7 @@ export * from './CreateRegistryCredentialRequest';
35
35
  export * from './CreateSshKeyRequest';
36
36
  export * from './CreateWebhookEndpointRequest';
37
37
  export * from './CryptoDeposit';
38
+ export * from './DataRetention';
38
39
  export * from './DedicatedIPRequest';
39
40
  export * from './Embedding';
40
41
  export * from './EmbeddingsRequest';
@@ -110,6 +111,7 @@ export * from './TemplateEnvInner';
110
111
  export * from './TemplateList';
111
112
  export * from './TemplatePortsInner';
112
113
  export * from './UpdateBillingDetailsRequest';
114
+ export * from './UpdateDataRetentionRequest';
113
115
  export * from './UpdateInstanceRequest';
114
116
  export * from './UpdateSpendingLimitRequest';
115
117
  export * from './Usage';
@@ -53,6 +53,7 @@ __exportStar(require("./CreateRegistryCredentialRequest"), exports);
53
53
  __exportStar(require("./CreateSshKeyRequest"), exports);
54
54
  __exportStar(require("./CreateWebhookEndpointRequest"), exports);
55
55
  __exportStar(require("./CryptoDeposit"), exports);
56
+ __exportStar(require("./DataRetention"), exports);
56
57
  __exportStar(require("./DedicatedIPRequest"), exports);
57
58
  __exportStar(require("./Embedding"), exports);
58
59
  __exportStar(require("./EmbeddingsRequest"), exports);
@@ -128,6 +129,7 @@ __exportStar(require("./TemplateEnvInner"), exports);
128
129
  __exportStar(require("./TemplateList"), exports);
129
130
  __exportStar(require("./TemplatePortsInner"), exports);
130
131
  __exportStar(require("./UpdateBillingDetailsRequest"), exports);
132
+ __exportStar(require("./UpdateDataRetentionRequest"), exports);
131
133
  __exportStar(require("./UpdateInstanceRequest"), exports);
132
134
  __exportStar(require("./UpdateSpendingLimitRequest"), exports);
133
135
  __exportStar(require("./Usage"), exports);
package/dist/runtime.js CHANGED
@@ -69,7 +69,7 @@ class Configuration {
69
69
  return undefined;
70
70
  }
71
71
  get headers() {
72
- return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.1' }, this.configuration.headers);
72
+ return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.3' }, this.configuration.headers);
73
73
  }
74
74
  get credentials() {
75
75
  return this.configuration.credentials;
@@ -0,0 +1,38 @@
1
+
2
+ # DataRetention
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `object` | string
10
+ `zeroDataRetention` | boolean
11
+ `updatedAt` | Date
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { DataRetention } from '@gpuai/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "object": null,
21
+ "zeroDataRetention": null,
22
+ "updatedAt": null,
23
+ } satisfies DataRetention
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as DataRetention
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -155,7 +155,7 @@ example().catch(console.error);
155
155
  | Status code | Description | Response headers |
156
156
  |-------------|-------------|------------------|
157
157
  | **200** | The uploaded file object. | - |
158
- | **400** | Invalid request (OpenAI error envelope). | - |
158
+ | **400** | Invalid request (OpenAI error envelope). On inference routes this includes &#x60;zero_data_retention_unavailable&#x60; when zero data retention is required and the model has no zero-data-retention host. | - |
159
159
  | **401** | Missing or invalid API key (OpenAI error envelope). | - |
160
160
  | **403** | API key lacks the required scope (OpenAI error envelope). | - |
161
161
  | **429** | Rate limit exceeded (OpenAI error envelope). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
@@ -229,7 +229,7 @@ example().catch(console.error);
229
229
  | Status code | Description | Response headers |
230
230
  |-------------|-------------|------------------|
231
231
  | **200** | The created fine-tuning job. | - |
232
- | **400** | Invalid request (OpenAI error envelope). | - |
232
+ | **400** | Invalid request (OpenAI error envelope). On inference routes this includes &#x60;zero_data_retention_unavailable&#x60; when zero data retention is required and the model has no zero-data-retention host. | - |
233
233
  | **401** | Missing or invalid API key (OpenAI error envelope). | - |
234
234
  | **402** | Insufficient balance (OpenAI error envelope, SERV-06). | - |
235
235
  | **403** | API key lacks the required scope (OpenAI error envelope). | - |