@gpuai/sdk 0.5.0 → 0.5.1
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 +2 -0
- package/README.md +3 -2
- package/dist/esm/models/OfferingAlternative.d.ts +68 -0
- package/dist/esm/models/OfferingAlternative.js +67 -0
- package/dist/esm/models/OperationError.d.ts +20 -1
- package/dist/esm/models/OperationError.js +7 -0
- package/dist/esm/models/Problem.d.ts +1 -0
- package/dist/esm/models/Problem.js +1 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/OfferingAlternative.d.ts +68 -0
- package/dist/models/OfferingAlternative.js +74 -0
- package/dist/models/OperationError.d.ts +20 -1
- package/dist/models/OperationError.js +7 -0
- package/dist/models/Problem.d.ts +1 -0
- package/dist/models/Problem.js +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.js +1 -1
- package/docs/OfferingAlternative.md +47 -0
- package/docs/OperationError.md +6 -0
- package/package.json +1 -1
- package/src/models/OfferingAlternative.ts +120 -0
- package/src/models/OperationError.ts +33 -1
- package/src/models/Problem.ts +1 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -102,6 +102,7 @@ docs/ModelList.md
|
|
|
102
102
|
docs/ModelParametersInner.md
|
|
103
103
|
docs/ModelPricing.md
|
|
104
104
|
docs/ModelRate.md
|
|
105
|
+
docs/OfferingAlternative.md
|
|
105
106
|
docs/OpenAIErrorEnvelope.md
|
|
106
107
|
docs/OpenAIErrorEnvelopeError.md
|
|
107
108
|
docs/Operation.md
|
|
@@ -258,6 +259,7 @@ src/models/ModelList.ts
|
|
|
258
259
|
src/models/ModelParametersInner.ts
|
|
259
260
|
src/models/ModelPricing.ts
|
|
260
261
|
src/models/ModelRate.ts
|
|
262
|
+
src/models/OfferingAlternative.ts
|
|
261
263
|
src/models/OpenAIErrorEnvelope.ts
|
|
262
264
|
src/models/OpenAIErrorEnvelopeError.ts
|
|
263
265
|
src/models/Operation.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.5.
|
|
1
|
+
# @gpuai/sdk@0.5.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.gpu.ai API.
|
|
4
4
|
|
|
@@ -231,6 +231,7 @@ All URIs are relative to *https://api.gpu.ai/v1*
|
|
|
231
231
|
- [ModelParametersInner](docs/ModelParametersInner.md)
|
|
232
232
|
- [ModelPricing](docs/ModelPricing.md)
|
|
233
233
|
- [ModelRate](docs/ModelRate.md)
|
|
234
|
+
- [OfferingAlternative](docs/OfferingAlternative.md)
|
|
234
235
|
- [OpenAIErrorEnvelope](docs/OpenAIErrorEnvelope.md)
|
|
235
236
|
- [OpenAIErrorEnvelopeError](docs/OpenAIErrorEnvelopeError.md)
|
|
236
237
|
- [Operation](docs/Operation.md)
|
|
@@ -285,7 +286,7 @@ and is automatically generated by the
|
|
|
285
286
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
286
287
|
|
|
287
288
|
- API version: `1.0.0`
|
|
288
|
-
- Package version: `0.5.
|
|
289
|
+
- Package version: `0.5.1`
|
|
289
290
|
- Generator version: `7.24.0`
|
|
290
291
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
291
292
|
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* A live catalog row a launch whose pinned offering was gone could take instead. Same fields and meaning as the matching GET /pricing row.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OfferingAlternative
|
|
16
|
+
*/
|
|
17
|
+
export interface OfferingAlternative {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OfferingAlternative
|
|
22
|
+
*/
|
|
23
|
+
offeringId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OfferingAlternative
|
|
28
|
+
*/
|
|
29
|
+
gpuType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OfferingAlternative
|
|
34
|
+
*/
|
|
35
|
+
gpuCount: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OfferingAlternative
|
|
40
|
+
*/
|
|
41
|
+
region: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OfferingAlternative
|
|
46
|
+
*/
|
|
47
|
+
tier: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof OfferingAlternative
|
|
52
|
+
*/
|
|
53
|
+
pricePerHour: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof OfferingAlternative
|
|
58
|
+
*/
|
|
59
|
+
available: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the OfferingAlternative interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfOfferingAlternative(value: object): value is OfferingAlternative;
|
|
65
|
+
export declare function OfferingAlternativeFromJSON(json: any): OfferingAlternative;
|
|
66
|
+
export declare function OfferingAlternativeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OfferingAlternative;
|
|
67
|
+
export declare function OfferingAlternativeToJSON(json: any): OfferingAlternative;
|
|
68
|
+
export declare function OfferingAlternativeToJSONTyped(value?: OfferingAlternative | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 OfferingAlternative interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOfferingAlternative(value) {
|
|
18
|
+
if ((!('offeringId' in value) && !('offering_id' in value)) || (value['offeringId'] === undefined && value['offering_id'] === undefined))
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('gpuType' in value) && !('gpu_type' in value)) || (value['gpuType'] === undefined && value['gpu_type'] === undefined))
|
|
21
|
+
return false;
|
|
22
|
+
if ((!('gpuCount' in value) && !('gpu_count' in value)) || (value['gpuCount'] === undefined && value['gpu_count'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('region' in value) || value['region'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('tier' in value) || value['tier'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('pricePerHour' in value) && !('price_per_hour' in value)) || (value['pricePerHour'] === undefined && value['price_per_hour'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('available' in value) || value['available'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function OfferingAlternativeFromJSON(json) {
|
|
35
|
+
return OfferingAlternativeFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function OfferingAlternativeFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'offeringId': json['offering_id'],
|
|
43
|
+
'gpuType': json['gpu_type'],
|
|
44
|
+
'gpuCount': json['gpu_count'],
|
|
45
|
+
'region': json['region'],
|
|
46
|
+
'tier': json['tier'],
|
|
47
|
+
'pricePerHour': json['price_per_hour'],
|
|
48
|
+
'available': json['available'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function OfferingAlternativeToJSON(json) {
|
|
52
|
+
return OfferingAlternativeToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function OfferingAlternativeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'offering_id': value['offeringId'],
|
|
60
|
+
'gpu_type': value['gpuType'],
|
|
61
|
+
'gpu_count': value['gpuCount'],
|
|
62
|
+
'region': value['region'],
|
|
63
|
+
'tier': value['tier'],
|
|
64
|
+
'price_per_hour': value['pricePerHour'],
|
|
65
|
+
'available': value['available'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OfferingAlternative } from './OfferingAlternative';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
*/
|
|
17
18
|
export interface OperationError {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Stable machine-readable failure code (see Problem.code), for example operation_failed (retryable after a backoff), price_changed or offering_unavailable (not retryable as sent).
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof OperationError
|
|
22
23
|
*/
|
|
@@ -27,6 +28,24 @@ export interface OperationError {
|
|
|
27
28
|
* @memberof OperationError
|
|
28
29
|
*/
|
|
29
30
|
detail?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Present only when code is offering_unavailable: up to three live catalog rows of the same GPU type, count and tier, cheapest first. Pass one's offering_id as the new pin.
|
|
33
|
+
* @type {Array<OfferingAlternative>}
|
|
34
|
+
* @memberof OperationError
|
|
35
|
+
*/
|
|
36
|
+
alternatives?: Array<OfferingAlternative>;
|
|
37
|
+
/**
|
|
38
|
+
* Present only when code is price_changed: the live hourly price the launch found.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof OperationError
|
|
41
|
+
*/
|
|
42
|
+
currentPricePerHour?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Present only when code is price_changed: the hourly price the launch was approved at (max_price_per_hour, or the viewed price). Relaunch with max_price_per_hour of at least current_price_per_hour to accept the new price.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof OperationError
|
|
47
|
+
*/
|
|
48
|
+
maxPricePerHour?: number;
|
|
30
49
|
}
|
|
31
50
|
/**
|
|
32
51
|
* Check if a given object implements the OperationError interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { OfferingAlternativeFromJSON, OfferingAlternativeToJSON, } from './OfferingAlternative';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the OperationError interface.
|
|
16
17
|
*/
|
|
@@ -27,6 +28,9 @@ export function OperationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
return {
|
|
28
29
|
'code': json['code'] == null ? undefined : json['code'],
|
|
29
30
|
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
31
|
+
'alternatives': json['alternatives'] == null ? undefined : (json['alternatives'].map(OfferingAlternativeFromJSON)),
|
|
32
|
+
'currentPricePerHour': json['current_price_per_hour'] == null ? undefined : json['current_price_per_hour'],
|
|
33
|
+
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
30
34
|
};
|
|
31
35
|
}
|
|
32
36
|
export function OperationErrorToJSON(json) {
|
|
@@ -39,5 +43,8 @@ export function OperationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
43
|
return {
|
|
40
44
|
'code': value['code'],
|
|
41
45
|
'detail': value['detail'],
|
|
46
|
+
'alternatives': value['alternatives'] == null ? undefined : (value['alternatives'].map(OfferingAlternativeToJSON)),
|
|
47
|
+
'current_price_per_hour': value['currentPricePerHour'],
|
|
48
|
+
'max_price_per_hour': value['maxPricePerHour'],
|
|
42
49
|
};
|
|
43
50
|
}
|
|
@@ -69,6 +69,7 @@ export declare const ProblemCodeEnum: {
|
|
|
69
69
|
readonly ModelTooLarge: "model_too_large";
|
|
70
70
|
readonly GpuVramTooSmall: "gpu_vram_too_small";
|
|
71
71
|
readonly PriceChanged: "price_changed";
|
|
72
|
+
readonly OfferingUnavailable: "offering_unavailable";
|
|
72
73
|
readonly DedicatedIpLimit: "dedicated_ip_limit";
|
|
73
74
|
readonly DedicatedIpUnavailable: "dedicated_ip_unavailable";
|
|
74
75
|
readonly InsufficientBalance: "insufficient_balance";
|
|
@@ -28,6 +28,7 @@ export const ProblemCodeEnum = {
|
|
|
28
28
|
ModelTooLarge: 'model_too_large',
|
|
29
29
|
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
30
30
|
PriceChanged: 'price_changed',
|
|
31
|
+
OfferingUnavailable: 'offering_unavailable',
|
|
31
32
|
DedicatedIpLimit: 'dedicated_ip_limit',
|
|
32
33
|
DedicatedIpUnavailable: 'dedicated_ip_unavailable',
|
|
33
34
|
InsufficientBalance: 'insufficient_balance',
|
|
@@ -88,6 +88,7 @@ export * from './ModelList';
|
|
|
88
88
|
export * from './ModelParametersInner';
|
|
89
89
|
export * from './ModelPricing';
|
|
90
90
|
export * from './ModelRate';
|
|
91
|
+
export * from './OfferingAlternative';
|
|
91
92
|
export * from './OpenAIErrorEnvelope';
|
|
92
93
|
export * from './OpenAIErrorEnvelopeError';
|
|
93
94
|
export * from './Operation';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -90,6 +90,7 @@ export * from './ModelList';
|
|
|
90
90
|
export * from './ModelParametersInner';
|
|
91
91
|
export * from './ModelPricing';
|
|
92
92
|
export * from './ModelRate';
|
|
93
|
+
export * from './OfferingAlternative';
|
|
93
94
|
export * from './OpenAIErrorEnvelope';
|
|
94
95
|
export * from './OpenAIErrorEnvelopeError';
|
|
95
96
|
export * from './Operation';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -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.
|
|
64
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.1' }, this.configuration.headers);
|
|
65
65
|
}
|
|
66
66
|
get credentials() {
|
|
67
67
|
return this.configuration.credentials;
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* A live catalog row a launch whose pinned offering was gone could take instead. Same fields and meaning as the matching GET /pricing row.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OfferingAlternative
|
|
16
|
+
*/
|
|
17
|
+
export interface OfferingAlternative {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OfferingAlternative
|
|
22
|
+
*/
|
|
23
|
+
offeringId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OfferingAlternative
|
|
28
|
+
*/
|
|
29
|
+
gpuType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OfferingAlternative
|
|
34
|
+
*/
|
|
35
|
+
gpuCount: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OfferingAlternative
|
|
40
|
+
*/
|
|
41
|
+
region: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OfferingAlternative
|
|
46
|
+
*/
|
|
47
|
+
tier: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof OfferingAlternative
|
|
52
|
+
*/
|
|
53
|
+
pricePerHour: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof OfferingAlternative
|
|
58
|
+
*/
|
|
59
|
+
available: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the OfferingAlternative interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfOfferingAlternative(value: object): value is OfferingAlternative;
|
|
65
|
+
export declare function OfferingAlternativeFromJSON(json: any): OfferingAlternative;
|
|
66
|
+
export declare function OfferingAlternativeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OfferingAlternative;
|
|
67
|
+
export declare function OfferingAlternativeToJSON(json: any): OfferingAlternative;
|
|
68
|
+
export declare function OfferingAlternativeToJSONTyped(value?: OfferingAlternative | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfOfferingAlternative = instanceOfOfferingAlternative;
|
|
17
|
+
exports.OfferingAlternativeFromJSON = OfferingAlternativeFromJSON;
|
|
18
|
+
exports.OfferingAlternativeFromJSONTyped = OfferingAlternativeFromJSONTyped;
|
|
19
|
+
exports.OfferingAlternativeToJSON = OfferingAlternativeToJSON;
|
|
20
|
+
exports.OfferingAlternativeToJSONTyped = OfferingAlternativeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OfferingAlternative interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOfferingAlternative(value) {
|
|
25
|
+
if ((!('offeringId' in value) && !('offering_id' in value)) || (value['offeringId'] === undefined && value['offering_id'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('gpuType' in value) && !('gpu_type' in value)) || (value['gpuType'] === undefined && value['gpu_type'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('gpuCount' in value) && !('gpu_count' in value)) || (value['gpuCount'] === undefined && value['gpu_count'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('region' in value) || value['region'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('tier' in value) || value['tier'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('pricePerHour' in value) && !('price_per_hour' in value)) || (value['pricePerHour'] === undefined && value['price_per_hour'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if (!('available' in value) || value['available'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function OfferingAlternativeFromJSON(json) {
|
|
42
|
+
return OfferingAlternativeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OfferingAlternativeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'offeringId': json['offering_id'],
|
|
50
|
+
'gpuType': json['gpu_type'],
|
|
51
|
+
'gpuCount': json['gpu_count'],
|
|
52
|
+
'region': json['region'],
|
|
53
|
+
'tier': json['tier'],
|
|
54
|
+
'pricePerHour': json['price_per_hour'],
|
|
55
|
+
'available': json['available'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function OfferingAlternativeToJSON(json) {
|
|
59
|
+
return OfferingAlternativeToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function OfferingAlternativeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'offering_id': value['offeringId'],
|
|
67
|
+
'gpu_type': value['gpuType'],
|
|
68
|
+
'gpu_count': value['gpuCount'],
|
|
69
|
+
'region': value['region'],
|
|
70
|
+
'tier': value['tier'],
|
|
71
|
+
'price_per_hour': value['pricePerHour'],
|
|
72
|
+
'available': value['available'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OfferingAlternative } from './OfferingAlternative';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
*/
|
|
17
18
|
export interface OperationError {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Stable machine-readable failure code (see Problem.code), for example operation_failed (retryable after a backoff), price_changed or offering_unavailable (not retryable as sent).
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof OperationError
|
|
22
23
|
*/
|
|
@@ -27,6 +28,24 @@ export interface OperationError {
|
|
|
27
28
|
* @memberof OperationError
|
|
28
29
|
*/
|
|
29
30
|
detail?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Present only when code is offering_unavailable: up to three live catalog rows of the same GPU type, count and tier, cheapest first. Pass one's offering_id as the new pin.
|
|
33
|
+
* @type {Array<OfferingAlternative>}
|
|
34
|
+
* @memberof OperationError
|
|
35
|
+
*/
|
|
36
|
+
alternatives?: Array<OfferingAlternative>;
|
|
37
|
+
/**
|
|
38
|
+
* Present only when code is price_changed: the live hourly price the launch found.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof OperationError
|
|
41
|
+
*/
|
|
42
|
+
currentPricePerHour?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Present only when code is price_changed: the hourly price the launch was approved at (max_price_per_hour, or the viewed price). Relaunch with max_price_per_hour of at least current_price_per_hour to accept the new price.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof OperationError
|
|
47
|
+
*/
|
|
48
|
+
maxPricePerHour?: number;
|
|
30
49
|
}
|
|
31
50
|
/**
|
|
32
51
|
* Check if a given object implements the OperationError interface.
|
|
@@ -18,6 +18,7 @@ exports.OperationErrorFromJSON = OperationErrorFromJSON;
|
|
|
18
18
|
exports.OperationErrorFromJSONTyped = OperationErrorFromJSONTyped;
|
|
19
19
|
exports.OperationErrorToJSON = OperationErrorToJSON;
|
|
20
20
|
exports.OperationErrorToJSONTyped = OperationErrorToJSONTyped;
|
|
21
|
+
const OfferingAlternative_1 = require("./OfferingAlternative");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the OperationError interface.
|
|
23
24
|
*/
|
|
@@ -34,6 +35,9 @@ function OperationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
35
|
return {
|
|
35
36
|
'code': json['code'] == null ? undefined : json['code'],
|
|
36
37
|
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
38
|
+
'alternatives': json['alternatives'] == null ? undefined : (json['alternatives'].map(OfferingAlternative_1.OfferingAlternativeFromJSON)),
|
|
39
|
+
'currentPricePerHour': json['current_price_per_hour'] == null ? undefined : json['current_price_per_hour'],
|
|
40
|
+
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
function OperationErrorToJSON(json) {
|
|
@@ -46,5 +50,8 @@ function OperationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
return {
|
|
47
51
|
'code': value['code'],
|
|
48
52
|
'detail': value['detail'],
|
|
53
|
+
'alternatives': value['alternatives'] == null ? undefined : (value['alternatives'].map(OfferingAlternative_1.OfferingAlternativeToJSON)),
|
|
54
|
+
'current_price_per_hour': value['currentPricePerHour'],
|
|
55
|
+
'max_price_per_hour': value['maxPricePerHour'],
|
|
49
56
|
};
|
|
50
57
|
}
|
package/dist/models/Problem.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare const ProblemCodeEnum: {
|
|
|
69
69
|
readonly ModelTooLarge: "model_too_large";
|
|
70
70
|
readonly GpuVramTooSmall: "gpu_vram_too_small";
|
|
71
71
|
readonly PriceChanged: "price_changed";
|
|
72
|
+
readonly OfferingUnavailable: "offering_unavailable";
|
|
72
73
|
readonly DedicatedIpLimit: "dedicated_ip_limit";
|
|
73
74
|
readonly DedicatedIpUnavailable: "dedicated_ip_unavailable";
|
|
74
75
|
readonly InsufficientBalance: "insufficient_balance";
|
package/dist/models/Problem.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.ProblemCodeEnum = {
|
|
|
36
36
|
ModelTooLarge: 'model_too_large',
|
|
37
37
|
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
38
38
|
PriceChanged: 'price_changed',
|
|
39
|
+
OfferingUnavailable: 'offering_unavailable',
|
|
39
40
|
DedicatedIpLimit: 'dedicated_ip_limit',
|
|
40
41
|
DedicatedIpUnavailable: 'dedicated_ip_unavailable',
|
|
41
42
|
InsufficientBalance: 'insufficient_balance',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export * from './ModelList';
|
|
|
88
88
|
export * from './ModelParametersInner';
|
|
89
89
|
export * from './ModelPricing';
|
|
90
90
|
export * from './ModelRate';
|
|
91
|
+
export * from './OfferingAlternative';
|
|
91
92
|
export * from './OpenAIErrorEnvelope';
|
|
92
93
|
export * from './OpenAIErrorEnvelopeError';
|
|
93
94
|
export * from './Operation';
|
package/dist/models/index.js
CHANGED
|
@@ -106,6 +106,7 @@ __exportStar(require("./ModelList"), exports);
|
|
|
106
106
|
__exportStar(require("./ModelParametersInner"), exports);
|
|
107
107
|
__exportStar(require("./ModelPricing"), exports);
|
|
108
108
|
__exportStar(require("./ModelRate"), exports);
|
|
109
|
+
__exportStar(require("./OfferingAlternative"), exports);
|
|
109
110
|
__exportStar(require("./OpenAIErrorEnvelope"), exports);
|
|
110
111
|
__exportStar(require("./OpenAIErrorEnvelopeError"), exports);
|
|
111
112
|
__exportStar(require("./Operation"), 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.
|
|
72
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.1' }, this.configuration.headers);
|
|
73
73
|
}
|
|
74
74
|
get credentials() {
|
|
75
75
|
return this.configuration.credentials;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
# OfferingAlternative
|
|
3
|
+
|
|
4
|
+
A live catalog row a launch whose pinned offering was gone could take instead. Same fields and meaning as the matching GET /pricing row.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`offeringId` | string
|
|
11
|
+
`gpuType` | string
|
|
12
|
+
`gpuCount` | number
|
|
13
|
+
`region` | string
|
|
14
|
+
`tier` | string
|
|
15
|
+
`pricePerHour` | number
|
|
16
|
+
`available` | number
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { OfferingAlternative } from '@gpuai/sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"offeringId": null,
|
|
26
|
+
"gpuType": null,
|
|
27
|
+
"gpuCount": null,
|
|
28
|
+
"region": null,
|
|
29
|
+
"tier": null,
|
|
30
|
+
"pricePerHour": null,
|
|
31
|
+
"available": null,
|
|
32
|
+
} satisfies OfferingAlternative
|
|
33
|
+
|
|
34
|
+
console.log(example)
|
|
35
|
+
|
|
36
|
+
// Convert the instance to a JSON string
|
|
37
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
38
|
+
console.log(exampleJSON)
|
|
39
|
+
|
|
40
|
+
// Parse the JSON string back to an object
|
|
41
|
+
const exampleParsed = JSON.parse(exampleJSON) as OfferingAlternative
|
|
42
|
+
console.log(exampleParsed)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
46
|
+
|
|
47
|
+
|
package/docs/OperationError.md
CHANGED
|
@@ -8,6 +8,9 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`code` | string
|
|
10
10
|
`detail` | string
|
|
11
|
+
`alternatives` | [Array<OfferingAlternative>](OfferingAlternative.md)
|
|
12
|
+
`currentPricePerHour` | number
|
|
13
|
+
`maxPricePerHour` | number
|
|
11
14
|
|
|
12
15
|
## Example
|
|
13
16
|
|
|
@@ -18,6 +21,9 @@ import type { OperationError } from '@gpuai/sdk'
|
|
|
18
21
|
const example = {
|
|
19
22
|
"code": null,
|
|
20
23
|
"detail": null,
|
|
24
|
+
"alternatives": null,
|
|
25
|
+
"currentPricePerHour": null,
|
|
26
|
+
"maxPricePerHour": null,
|
|
21
27
|
} satisfies OperationError
|
|
22
28
|
|
|
23
29
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A live catalog row a launch whose pinned offering was gone could take instead. Same fields and meaning as the matching GET /pricing row.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OfferingAlternative
|
|
20
|
+
*/
|
|
21
|
+
export interface OfferingAlternative {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OfferingAlternative
|
|
26
|
+
*/
|
|
27
|
+
offeringId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OfferingAlternative
|
|
32
|
+
*/
|
|
33
|
+
gpuType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof OfferingAlternative
|
|
38
|
+
*/
|
|
39
|
+
gpuCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OfferingAlternative
|
|
44
|
+
*/
|
|
45
|
+
region: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof OfferingAlternative
|
|
50
|
+
*/
|
|
51
|
+
tier: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof OfferingAlternative
|
|
56
|
+
*/
|
|
57
|
+
pricePerHour: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof OfferingAlternative
|
|
62
|
+
*/
|
|
63
|
+
available: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the OfferingAlternative interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfOfferingAlternative(value: object): value is OfferingAlternative {
|
|
70
|
+
if ((!('offeringId' in (value as Record<string, any>)) && !('offering_id' in (value as Record<string, any>))) || ((value as Record<string, any>)['offeringId'] === undefined && (value as Record<string, any>)['offering_id'] === undefined)) return false;
|
|
71
|
+
if ((!('gpuType' in (value as Record<string, any>)) && !('gpu_type' in (value as Record<string, any>))) || ((value as Record<string, any>)['gpuType'] === undefined && (value as Record<string, any>)['gpu_type'] === undefined)) return false;
|
|
72
|
+
if ((!('gpuCount' in (value as Record<string, any>)) && !('gpu_count' in (value as Record<string, any>))) || ((value as Record<string, any>)['gpuCount'] === undefined && (value as Record<string, any>)['gpu_count'] === undefined)) return false;
|
|
73
|
+
if (!('region' in value) || value['region'] === undefined) return false;
|
|
74
|
+
if (!('tier' in value) || value['tier'] === undefined) return false;
|
|
75
|
+
if ((!('pricePerHour' in (value as Record<string, any>)) && !('price_per_hour' in (value as Record<string, any>))) || ((value as Record<string, any>)['pricePerHour'] === undefined && (value as Record<string, any>)['price_per_hour'] === undefined)) return false;
|
|
76
|
+
if (!('available' in value) || value['available'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function OfferingAlternativeFromJSON(json: any): OfferingAlternative {
|
|
81
|
+
return OfferingAlternativeFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function OfferingAlternativeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OfferingAlternative {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'offeringId': json['offering_id'],
|
|
91
|
+
'gpuType': json['gpu_type'],
|
|
92
|
+
'gpuCount': json['gpu_count'],
|
|
93
|
+
'region': json['region'],
|
|
94
|
+
'tier': json['tier'],
|
|
95
|
+
'pricePerHour': json['price_per_hour'],
|
|
96
|
+
'available': json['available'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function OfferingAlternativeToJSON(json: any): OfferingAlternative {
|
|
101
|
+
return OfferingAlternativeToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function OfferingAlternativeToJSONTyped(value?: OfferingAlternative | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'offering_id': value['offeringId'],
|
|
112
|
+
'gpu_type': value['gpuType'],
|
|
113
|
+
'gpu_count': value['gpuCount'],
|
|
114
|
+
'region': value['region'],
|
|
115
|
+
'tier': value['tier'],
|
|
116
|
+
'price_per_hour': value['pricePerHour'],
|
|
117
|
+
'available': value['available'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OfferingAlternative } from './OfferingAlternative';
|
|
17
|
+
import {
|
|
18
|
+
OfferingAlternativeFromJSON,
|
|
19
|
+
OfferingAlternativeFromJSONTyped,
|
|
20
|
+
OfferingAlternativeToJSON,
|
|
21
|
+
OfferingAlternativeToJSONTyped,
|
|
22
|
+
} from './OfferingAlternative';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -20,7 +28,7 @@ import { mapValues } from '../runtime';
|
|
|
20
28
|
*/
|
|
21
29
|
export interface OperationError {
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* Stable machine-readable failure code (see Problem.code), for example operation_failed (retryable after a backoff), price_changed or offering_unavailable (not retryable as sent).
|
|
24
32
|
* @type {string}
|
|
25
33
|
* @memberof OperationError
|
|
26
34
|
*/
|
|
@@ -31,6 +39,24 @@ export interface OperationError {
|
|
|
31
39
|
* @memberof OperationError
|
|
32
40
|
*/
|
|
33
41
|
detail?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Present only when code is offering_unavailable: up to three live catalog rows of the same GPU type, count and tier, cheapest first. Pass one's offering_id as the new pin.
|
|
44
|
+
* @type {Array<OfferingAlternative>}
|
|
45
|
+
* @memberof OperationError
|
|
46
|
+
*/
|
|
47
|
+
alternatives?: Array<OfferingAlternative>;
|
|
48
|
+
/**
|
|
49
|
+
* Present only when code is price_changed: the live hourly price the launch found.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof OperationError
|
|
52
|
+
*/
|
|
53
|
+
currentPricePerHour?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Present only when code is price_changed: the hourly price the launch was approved at (max_price_per_hour, or the viewed price). Relaunch with max_price_per_hour of at least current_price_per_hour to accept the new price.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof OperationError
|
|
58
|
+
*/
|
|
59
|
+
maxPricePerHour?: number;
|
|
34
60
|
}
|
|
35
61
|
|
|
36
62
|
/**
|
|
@@ -52,6 +78,9 @@ export function OperationErrorFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
52
78
|
|
|
53
79
|
'code': json['code'] == null ? undefined : json['code'],
|
|
54
80
|
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
81
|
+
'alternatives': json['alternatives'] == null ? undefined : ((json['alternatives'] as Array<any>).map(OfferingAlternativeFromJSON)),
|
|
82
|
+
'currentPricePerHour': json['current_price_per_hour'] == null ? undefined : json['current_price_per_hour'],
|
|
83
|
+
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
55
84
|
};
|
|
56
85
|
}
|
|
57
86
|
|
|
@@ -68,6 +97,9 @@ export function OperationErrorToJSONTyped(value?: OperationError | null, ignoreD
|
|
|
68
97
|
|
|
69
98
|
'code': value['code'],
|
|
70
99
|
'detail': value['detail'],
|
|
100
|
+
'alternatives': value['alternatives'] == null ? undefined : ((value['alternatives'] as Array<any>).map(OfferingAlternativeToJSON)),
|
|
101
|
+
'current_price_per_hour': value['currentPricePerHour'],
|
|
102
|
+
'max_price_per_hour': value['maxPricePerHour'],
|
|
71
103
|
};
|
|
72
104
|
}
|
|
73
105
|
|
package/src/models/Problem.ts
CHANGED
|
@@ -75,6 +75,7 @@ export const ProblemCodeEnum = {
|
|
|
75
75
|
ModelTooLarge: 'model_too_large',
|
|
76
76
|
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
77
77
|
PriceChanged: 'price_changed',
|
|
78
|
+
OfferingUnavailable: 'offering_unavailable',
|
|
78
79
|
DedicatedIpLimit: 'dedicated_ip_limit',
|
|
79
80
|
DedicatedIpUnavailable: 'dedicated_ip_unavailable',
|
|
80
81
|
InsufficientBalance: 'insufficient_balance',
|
package/src/models/index.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './ModelList';
|
|
|
90
90
|
export * from './ModelParametersInner';
|
|
91
91
|
export * from './ModelPricing';
|
|
92
92
|
export * from './ModelRate';
|
|
93
|
+
export * from './OfferingAlternative';
|
|
93
94
|
export * from './OpenAIErrorEnvelope';
|
|
94
95
|
export * from './OpenAIErrorEnvelopeError';
|
|
95
96
|
export * from './Operation';
|
package/src/runtime.ts
CHANGED
|
@@ -75,7 +75,7 @@ export class Configuration {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
get headers(): HTTPHeaders | undefined {
|
|
78
|
-
return { 'User-Agent': 'gpuai-sdk-ts/0.5.
|
|
78
|
+
return { 'User-Agent': 'gpuai-sdk-ts/0.5.1', ...this.configuration.headers };
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
get credentials(): RequestCredentials | undefined {
|