@gpuai/sdk 0.3.10 → 0.3.12

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.10
1
+ # @gpuai/sdk@0.3.12
2
2
 
3
3
  A TypeScript SDK client for the api.gpu.ai API.
4
4
 
@@ -204,7 +204,7 @@ and is automatically generated by the
204
204
  [OpenAPI Generator](https://openapi-generator.tech) project:
205
205
 
206
206
  - API version: `1.0.0`
207
- - Package version: `0.3.10`
207
+ - Package version: `0.3.12`
208
208
  - Generator version: `7.24.0`
209
209
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
210
210
 
@@ -175,5 +175,6 @@ export declare const ListModelsModalityEnum: {
175
175
  readonly Chat: "chat";
176
176
  readonly Image: "image";
177
177
  readonly Video: "video";
178
+ readonly Embedding: "embedding";
178
179
  };
179
180
  export type ListModelsModalityEnum = typeof ListModelsModalityEnum[keyof typeof ListModelsModalityEnum];
@@ -475,5 +475,6 @@ exports.InferenceApi = InferenceApi;
475
475
  exports.ListModelsModalityEnum = {
476
476
  Chat: 'chat',
477
477
  Image: 'image',
478
- Video: 'video'
478
+ Video: 'video',
479
+ Embedding: 'embedding'
479
480
  };
@@ -175,5 +175,6 @@ export declare const ListModelsModalityEnum: {
175
175
  readonly Chat: "chat";
176
176
  readonly Image: "image";
177
177
  readonly Video: "video";
178
+ readonly Embedding: "embedding";
178
179
  };
179
180
  export type ListModelsModalityEnum = typeof ListModelsModalityEnum[keyof typeof ListModelsModalityEnum];
@@ -471,5 +471,6 @@ export class InferenceApi extends runtime.BaseAPI {
471
471
  export const ListModelsModalityEnum = {
472
472
  Chat: 'chat',
473
473
  Image: 'image',
474
- Video: 'video'
474
+ Video: 'video',
475
+ Embedding: 'embedding'
475
476
  };
@@ -35,7 +35,7 @@ export interface CreateInstanceRequest {
35
35
  */
36
36
  region?: string;
37
37
  /**
38
- *
38
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
39
39
  * @type {CreateInstanceRequestTierEnum}
40
40
  * @memberof CreateInstanceRequest
41
41
  */
@@ -53,7 +53,7 @@ export interface Instance {
53
53
  */
54
54
  region: string;
55
55
  /**
56
- *
56
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
57
57
  * @type {InstanceTierEnum}
58
58
  * @memberof Instance
59
59
  */
@@ -54,7 +54,7 @@ export interface Model {
54
54
  */
55
55
  modality: ModelModalityEnum;
56
56
  /**
57
- * Browse-facing category; mirrors modality (chat/image/video).
57
+ * Browse-facing category; mirrors modality (chat/image/video/embedding).
58
58
  * @type {string}
59
59
  * @memberof Model
60
60
  */
@@ -122,6 +122,7 @@ export declare const ModelModalityEnum: {
122
122
  readonly Chat: "chat";
123
123
  readonly Image: "image";
124
124
  readonly Video: "video";
125
+ readonly Embedding: "embedding";
125
126
  };
126
127
  export type ModelModalityEnum = typeof ModelModalityEnum[keyof typeof ModelModalityEnum];
127
128
  /**
@@ -25,7 +25,8 @@ export const ModelObjectEnum = {
25
25
  export const ModelModalityEnum = {
26
26
  Chat: 'chat',
27
27
  Image: 'image',
28
- Video: 'video'
28
+ Video: 'video',
29
+ Embedding: 'embedding'
29
30
  };
30
31
  /**
31
32
  * @export
@@ -52,7 +52,7 @@ export interface Pricing {
52
52
  */
53
53
  region: string;
54
54
  /**
55
- *
55
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
56
56
  * @type {PricingTierEnum}
57
57
  * @memberof Pricing
58
58
  */
@@ -35,7 +35,7 @@ export interface CreateInstanceRequest {
35
35
  */
36
36
  region?: string;
37
37
  /**
38
- *
38
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
39
39
  * @type {CreateInstanceRequestTierEnum}
40
40
  * @memberof CreateInstanceRequest
41
41
  */
@@ -53,7 +53,7 @@ export interface Instance {
53
53
  */
54
54
  region: string;
55
55
  /**
56
- *
56
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
57
57
  * @type {InstanceTierEnum}
58
58
  * @memberof Instance
59
59
  */
@@ -54,7 +54,7 @@ export interface Model {
54
54
  */
55
55
  modality: ModelModalityEnum;
56
56
  /**
57
- * Browse-facing category; mirrors modality (chat/image/video).
57
+ * Browse-facing category; mirrors modality (chat/image/video/embedding).
58
58
  * @type {string}
59
59
  * @memberof Model
60
60
  */
@@ -122,6 +122,7 @@ export declare const ModelModalityEnum: {
122
122
  readonly Chat: "chat";
123
123
  readonly Image: "image";
124
124
  readonly Video: "video";
125
+ readonly Embedding: "embedding";
125
126
  };
126
127
  export type ModelModalityEnum = typeof ModelModalityEnum[keyof typeof ModelModalityEnum];
127
128
  /**
@@ -33,7 +33,8 @@ exports.ModelObjectEnum = {
33
33
  exports.ModelModalityEnum = {
34
34
  Chat: 'chat',
35
35
  Image: 'image',
36
- Video: 'video'
36
+ Video: 'video',
37
+ Embedding: 'embedding'
37
38
  };
38
39
  /**
39
40
  * @export
@@ -52,7 +52,7 @@ export interface Pricing {
52
52
  */
53
53
  region: string;
54
54
  /**
55
- *
55
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
56
56
  * @type {PricingTierEnum}
57
57
  * @memberof Pricing
58
58
  */
@@ -579,7 +579,7 @@ async function example() {
579
579
  const api = new InferenceApi(config);
580
580
 
581
581
  const body = {
582
- // 'chat' | 'image' | 'video' (optional)
582
+ // 'chat' | 'image' | 'video' | 'embedding' (optional)
583
583
  modality: modality_example,
584
584
  } satisfies ListModelsRequest;
585
585
 
@@ -600,7 +600,7 @@ example().catch(console.error);
600
600
 
601
601
  | Name | Type | Description | Notes |
602
602
  |------------- | ------------- | ------------- | -------------|
603
- | **modality** | `chat`, `image`, `video` | | [Optional] [Defaults to `undefined`] [Enum: chat, image, video] |
603
+ | **modality** | `chat`, `image`, `video`, `embedding` | | [Optional] [Defaults to `undefined`] [Enum: chat, image, video, embedding] |
604
604
 
605
605
  ### Return type
606
606
 
@@ -38,7 +38,7 @@ async function example() {
38
38
  gpuType: gpuType_example,
39
39
  // string | Exact-match filter on canonical region code (optional)
40
40
  region: region_example,
41
- // 'spot' | 'on_demand' | Exact-match filter on tier (optional)
41
+ // 'spot' | 'on_demand' | Exact-match filter on tier. `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand. (optional)
42
42
  tier: tier_example,
43
43
  // boolean | Include offers whose current availability is zero (optional)
44
44
  includeUnavailable: true,
@@ -65,7 +65,7 @@ example().catch(console.error);
65
65
  | **limit** | `number` | | [Optional] [Defaults to `50`] |
66
66
  | **gpuType** | `string` | Exact-match filter on gpu_type | [Optional] [Defaults to `undefined`] |
67
67
  | **region** | `string` | Exact-match filter on canonical region code | [Optional] [Defaults to `undefined`] |
68
- | **tier** | `spot`, `on_demand` | Exact-match filter on tier | [Optional] [Defaults to `undefined`] [Enum: spot, on_demand] |
68
+ | **tier** | `spot`, `on_demand` | Exact-match filter on tier. `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand. | [Optional] [Defaults to `undefined`] [Enum: spot, on_demand] |
69
69
  | **includeUnavailable** | `boolean` | Include offers whose current availability is zero | [Optional] [Defaults to `false`] |
70
70
 
71
71
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpuai/sdk",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "TypeScript SDK for the GPU.ai Public Developer API",
5
5
  "author": "GPU.ai Support <support@gpu.ai>",
6
6
  "repository": {
@@ -609,6 +609,7 @@ export class InferenceApi extends runtime.BaseAPI {
609
609
  export const ListModelsModalityEnum = {
610
610
  Chat: 'chat',
611
611
  Image: 'image',
612
- Video: 'video'
612
+ Video: 'video',
613
+ Embedding: 'embedding'
613
614
  } as const;
614
615
  export type ListModelsModalityEnum = typeof ListModelsModalityEnum[keyof typeof ListModelsModalityEnum];
@@ -46,7 +46,7 @@ export interface CreateInstanceRequest {
46
46
  */
47
47
  region?: string;
48
48
  /**
49
- *
49
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
50
50
  * @type {CreateInstanceRequestTierEnum}
51
51
  * @memberof CreateInstanceRequest
52
52
  */
@@ -64,7 +64,7 @@ export interface Instance {
64
64
  */
65
65
  region: string;
66
66
  /**
67
- *
67
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
68
68
  * @type {InstanceTierEnum}
69
69
  * @memberof Instance
70
70
  */
@@ -71,7 +71,7 @@ export interface Model {
71
71
  */
72
72
  modality: ModelModalityEnum;
73
73
  /**
74
- * Browse-facing category; mirrors modality (chat/image/video).
74
+ * Browse-facing category; mirrors modality (chat/image/video/embedding).
75
75
  * @type {string}
76
76
  * @memberof Model
77
77
  */
@@ -141,7 +141,8 @@ export type ModelObjectEnum = typeof ModelObjectEnum[keyof typeof ModelObjectEnu
141
141
  export const ModelModalityEnum = {
142
142
  Chat: 'chat',
143
143
  Image: 'image',
144
- Video: 'video'
144
+ Video: 'video',
145
+ Embedding: 'embedding'
145
146
  } as const;
146
147
  export type ModelModalityEnum = typeof ModelModalityEnum[keyof typeof ModelModalityEnum];
147
148
 
@@ -56,7 +56,7 @@ export interface Pricing {
56
56
  */
57
57
  region: string;
58
58
  /**
59
- *
59
+ * `spot` is soft-deprecated: spot capacity is currently unavailable sitewide (requests with tier=spot return no offerings); use on_demand.
60
60
  * @type {PricingTierEnum}
61
61
  * @memberof Pricing
62
62
  */