@gpuai/sdk 0.3.1 → 0.3.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @gpuai/sdk@0.3.1
1
+ # @gpuai/sdk@0.3.2
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.1`
199
+ - Package version: `0.3.2`
200
200
  - Generator version: `7.24.0`
201
201
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
202
202
 
@@ -57,6 +57,12 @@ export interface CreateInstanceRequest {
57
57
  * @memberof CreateInstanceRequest
58
58
  */
59
59
  maxPricePerHour?: number;
60
+ /**
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;
60
66
  /**
61
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.
62
68
  * @type {string}
@@ -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'],
@@ -57,6 +57,12 @@ export interface CreateInstanceRequest {
57
57
  * @memberof CreateInstanceRequest
58
58
  */
59
59
  maxPricePerHour?: number;
60
+ /**
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;
60
66
  /**
61
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.
62
68
  * @type {string}
@@ -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'],
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpuai/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "TypeScript SDK for the GPU.ai Public Developer API",
5
5
  "author": "GPU.ai Support <support@gpu.ai>",
6
6
  "repository": {
@@ -61,6 +61,12 @@ export interface CreateInstanceRequest {
61
61
  * @memberof CreateInstanceRequest
62
62
  */
63
63
  maxPricePerHour?: number;
64
+ /**
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;
64
70
  /**
65
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.
66
72
  * @type {string}
@@ -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'],