@gpuai/sdk 0.3.1 → 0.3.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.
- package/README.md +2 -2
- package/dist/esm/models/CreateInstanceRequest.d.ts +7 -1
- package/dist/esm/models/CreateInstanceRequest.js +2 -0
- package/dist/esm/models/Problem.d.ts +1 -0
- package/dist/esm/models/Problem.js +1 -0
- package/dist/models/CreateInstanceRequest.d.ts +7 -1
- package/dist/models/CreateInstanceRequest.js +2 -0
- package/dist/models/Problem.d.ts +1 -0
- package/dist/models/Problem.js +1 -0
- package/docs/CreateInstanceRequest.md +2 -0
- package/package.json +1 -1
- package/src/models/CreateInstanceRequest.ts +9 -1
- package/src/models/Problem.ts +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.3.
|
|
1
|
+
# @gpuai/sdk@0.3.3
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.gpu.ai API.
|
|
4
4
|
|
|
@@ -196,7 +196,7 @@ and is automatically generated by the
|
|
|
196
196
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
197
197
|
|
|
198
198
|
- API version: `1.0.0`
|
|
199
|
-
- Package version: `0.3.
|
|
199
|
+
- Package version: `0.3.3`
|
|
200
200
|
- Generator version: `7.24.0`
|
|
201
201
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
202
202
|
|
|
@@ -58,7 +58,13 @@ export interface CreateInstanceRequest {
|
|
|
58
58
|
*/
|
|
59
59
|
maxPricePerHour?: number;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* The retail $/hr the caller displayed to the user before launch. A catalog row is a quote, not a booking, and pinning an offering fixes which machine is placed but not its rate. If the launch-time price exceeds this by more than $0.01 the launch fails with `price_changed` carrying the new price instead of proceeding at the higher price; omit to accept the launch-time price (previous behavior). Refusal only — it is never read as consent, so it can neither raise what you are charged nor widen what may be bought on your behalf. Use max_price_per_hour to bound spend.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateInstanceRequest
|
|
64
|
+
*/
|
|
65
|
+
viewedPricePerHour?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry. Separately, an explicit gpu_type whose VRAM is below the template's own `min_vram_gb` returns 422 `gpu_vram_too_small`, naming the floor, the type's VRAM and the compatible GPU types. Auto-select is unaffected — it already filters by the floor.
|
|
62
68
|
* @type {string}
|
|
63
69
|
* @memberof CreateInstanceRequest
|
|
64
70
|
*/
|
|
@@ -45,6 +45,7 @@ export function CreateInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'sshKeyIds': json['ssh_key_ids'] == null ? undefined : json['ssh_key_ids'],
|
|
46
46
|
'name': json['name'] == null ? undefined : json['name'],
|
|
47
47
|
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
48
|
+
'viewedPricePerHour': json['viewed_price_per_hour'] == null ? undefined : json['viewed_price_per_hour'],
|
|
48
49
|
'templateId': json['template_id'] == null ? undefined : json['template_id'],
|
|
49
50
|
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
50
51
|
'offeringId': json['offering_id'] == null ? undefined : json['offering_id'],
|
|
@@ -67,6 +68,7 @@ export function CreateInstanceRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
67
68
|
'ssh_key_ids': value['sshKeyIds'],
|
|
68
69
|
'name': value['name'],
|
|
69
70
|
'max_price_per_hour': value['maxPricePerHour'],
|
|
71
|
+
'viewed_price_per_hour': value['viewedPricePerHour'],
|
|
70
72
|
'template_id': value['templateId'],
|
|
71
73
|
'environment': value['environment'],
|
|
72
74
|
'offering_id': value['offeringId'],
|
|
@@ -67,6 +67,7 @@ export declare const ProblemCodeEnum: {
|
|
|
67
67
|
readonly DiskUnavailable: "disk_unavailable";
|
|
68
68
|
readonly DiskExceedsOffering: "disk_exceeds_offering";
|
|
69
69
|
readonly ModelTooLarge: "model_too_large";
|
|
70
|
+
readonly GpuVramTooSmall: "gpu_vram_too_small";
|
|
70
71
|
readonly PriceChanged: "price_changed";
|
|
71
72
|
readonly InsufficientBalance: "insufficient_balance";
|
|
72
73
|
readonly QuotaExceeded: "quota_exceeded";
|
|
@@ -26,6 +26,7 @@ export const ProblemCodeEnum = {
|
|
|
26
26
|
DiskUnavailable: 'disk_unavailable',
|
|
27
27
|
DiskExceedsOffering: 'disk_exceeds_offering',
|
|
28
28
|
ModelTooLarge: 'model_too_large',
|
|
29
|
+
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
29
30
|
PriceChanged: 'price_changed',
|
|
30
31
|
InsufficientBalance: 'insufficient_balance',
|
|
31
32
|
QuotaExceeded: 'quota_exceeded',
|
|
@@ -58,7 +58,13 @@ export interface CreateInstanceRequest {
|
|
|
58
58
|
*/
|
|
59
59
|
maxPricePerHour?: number;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* The retail $/hr the caller displayed to the user before launch. A catalog row is a quote, not a booking, and pinning an offering fixes which machine is placed but not its rate. If the launch-time price exceeds this by more than $0.01 the launch fails with `price_changed` carrying the new price instead of proceeding at the higher price; omit to accept the launch-time price (previous behavior). Refusal only — it is never read as consent, so it can neither raise what you are charged nor widen what may be bought on your behalf. Use max_price_per_hour to bound spend.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateInstanceRequest
|
|
64
|
+
*/
|
|
65
|
+
viewedPricePerHour?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry. Separately, an explicit gpu_type whose VRAM is below the template's own `min_vram_gb` returns 422 `gpu_vram_too_small`, naming the floor, the type's VRAM and the compatible GPU types. Auto-select is unaffected — it already filters by the floor.
|
|
62
68
|
* @type {string}
|
|
63
69
|
* @memberof CreateInstanceRequest
|
|
64
70
|
*/
|
|
@@ -53,6 +53,7 @@ function CreateInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'sshKeyIds': json['ssh_key_ids'] == null ? undefined : json['ssh_key_ids'],
|
|
54
54
|
'name': json['name'] == null ? undefined : json['name'],
|
|
55
55
|
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
56
|
+
'viewedPricePerHour': json['viewed_price_per_hour'] == null ? undefined : json['viewed_price_per_hour'],
|
|
56
57
|
'templateId': json['template_id'] == null ? undefined : json['template_id'],
|
|
57
58
|
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
58
59
|
'offeringId': json['offering_id'] == null ? undefined : json['offering_id'],
|
|
@@ -75,6 +76,7 @@ function CreateInstanceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
76
|
'ssh_key_ids': value['sshKeyIds'],
|
|
76
77
|
'name': value['name'],
|
|
77
78
|
'max_price_per_hour': value['maxPricePerHour'],
|
|
79
|
+
'viewed_price_per_hour': value['viewedPricePerHour'],
|
|
78
80
|
'template_id': value['templateId'],
|
|
79
81
|
'environment': value['environment'],
|
|
80
82
|
'offering_id': value['offeringId'],
|
package/dist/models/Problem.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const ProblemCodeEnum: {
|
|
|
67
67
|
readonly DiskUnavailable: "disk_unavailable";
|
|
68
68
|
readonly DiskExceedsOffering: "disk_exceeds_offering";
|
|
69
69
|
readonly ModelTooLarge: "model_too_large";
|
|
70
|
+
readonly GpuVramTooSmall: "gpu_vram_too_small";
|
|
70
71
|
readonly PriceChanged: "price_changed";
|
|
71
72
|
readonly InsufficientBalance: "insufficient_balance";
|
|
72
73
|
readonly QuotaExceeded: "quota_exceeded";
|
package/dist/models/Problem.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.ProblemCodeEnum = {
|
|
|
34
34
|
DiskUnavailable: 'disk_unavailable',
|
|
35
35
|
DiskExceedsOffering: 'disk_exceeds_offering',
|
|
36
36
|
ModelTooLarge: 'model_too_large',
|
|
37
|
+
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
37
38
|
PriceChanged: 'price_changed',
|
|
38
39
|
InsufficientBalance: 'insufficient_balance',
|
|
39
40
|
QuotaExceeded: 'quota_exceeded',
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`sshKeyIds` | Array<string>
|
|
14
14
|
`name` | string
|
|
15
15
|
`maxPricePerHour` | number
|
|
16
|
+
`viewedPricePerHour` | number
|
|
16
17
|
`templateId` | string
|
|
17
18
|
`environment` | string
|
|
18
19
|
`offeringId` | string
|
|
@@ -33,6 +34,7 @@ const example = {
|
|
|
33
34
|
"sshKeyIds": null,
|
|
34
35
|
"name": null,
|
|
35
36
|
"maxPricePerHour": null,
|
|
37
|
+
"viewedPricePerHour": null,
|
|
36
38
|
"templateId": null,
|
|
37
39
|
"environment": certified:pytorch@2.13,
|
|
38
40
|
"offeringId": null,
|
package/package.json
CHANGED
|
@@ -62,7 +62,13 @@ export interface CreateInstanceRequest {
|
|
|
62
62
|
*/
|
|
63
63
|
maxPricePerHour?: number;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* The retail $/hr the caller displayed to the user before launch. A catalog row is a quote, not a booking, and pinning an offering fixes which machine is placed but not its rate. If the launch-time price exceeds this by more than $0.01 the launch fails with `price_changed` carrying the new price instead of proceeding at the higher price; omit to accept the launch-time price (previous behavior). Refusal only — it is never read as consent, so it can neither raise what you are charged nor widen what may be bought on your behalf. Use max_price_per_hour to bound spend.
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof CreateInstanceRequest
|
|
68
|
+
*/
|
|
69
|
+
viewedPricePerHour?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry. Separately, an explicit gpu_type whose VRAM is below the template's own `min_vram_gb` returns 422 `gpu_vram_too_small`, naming the floor, the type's VRAM and the compatible GPU types. Auto-select is unaffected — it already filters by the floor.
|
|
66
72
|
* @type {string}
|
|
67
73
|
* @memberof CreateInstanceRequest
|
|
68
74
|
*/
|
|
@@ -131,6 +137,7 @@ export function CreateInstanceRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
131
137
|
'sshKeyIds': json['ssh_key_ids'] == null ? undefined : json['ssh_key_ids'],
|
|
132
138
|
'name': json['name'] == null ? undefined : json['name'],
|
|
133
139
|
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
140
|
+
'viewedPricePerHour': json['viewed_price_per_hour'] == null ? undefined : json['viewed_price_per_hour'],
|
|
134
141
|
'templateId': json['template_id'] == null ? undefined : json['template_id'],
|
|
135
142
|
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
136
143
|
'offeringId': json['offering_id'] == null ? undefined : json['offering_id'],
|
|
@@ -157,6 +164,7 @@ export function CreateInstanceRequestToJSONTyped(value?: CreateInstanceRequest |
|
|
|
157
164
|
'ssh_key_ids': value['sshKeyIds'],
|
|
158
165
|
'name': value['name'],
|
|
159
166
|
'max_price_per_hour': value['maxPricePerHour'],
|
|
167
|
+
'viewed_price_per_hour': value['viewedPricePerHour'],
|
|
160
168
|
'template_id': value['templateId'],
|
|
161
169
|
'environment': value['environment'],
|
|
162
170
|
'offering_id': value['offeringId'],
|
package/src/models/Problem.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const ProblemCodeEnum = {
|
|
|
73
73
|
DiskUnavailable: 'disk_unavailable',
|
|
74
74
|
DiskExceedsOffering: 'disk_exceeds_offering',
|
|
75
75
|
ModelTooLarge: 'model_too_large',
|
|
76
|
+
GpuVramTooSmall: 'gpu_vram_too_small',
|
|
76
77
|
PriceChanged: 'price_changed',
|
|
77
78
|
InsufficientBalance: 'insufficient_balance',
|
|
78
79
|
QuotaExceeded: 'quota_exceeded',
|