@gpuai/sdk 0.3.9 → 0.3.11

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.9
1
+ # @gpuai/sdk@0.3.11
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.9`
207
+ - Package version: `0.3.11`
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
  };
@@ -115,13 +115,13 @@ export interface CreateInstanceRequest {
115
115
  */
116
116
  registryCredentialId?: string;
117
117
  /**
118
- * Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own. At most 32 arguments / 4KB. Requires `image`.
118
+ * Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own; an explicit empty array clears it while keeping the image CMD (docker `--entrypoint ""` semantics). Empty strings inside a non-empty argv are rejected (422). At most 32 arguments / 4KB. Requires `image`.
119
119
  * @type {Array<string>}
120
120
  * @memberof CreateInstanceRequest
121
121
  */
122
122
  entrypoint?: Array<string>;
123
123
  /**
124
- * Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden). Requires `image`.
124
+ * Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden with a non-empty argv; an empty-array entrypoint clear keeps the image CMD). An explicit empty array clears the CMD. Empty strings inside a non-empty argv are rejected (422). Requires `image`.
125
125
  * @type {Array<string>}
126
126
  * @memberof CreateInstanceRequest
127
127
  */
@@ -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
@@ -115,13 +115,13 @@ export interface CreateInstanceRequest {
115
115
  */
116
116
  registryCredentialId?: string;
117
117
  /**
118
- * Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own. At most 32 arguments / 4KB. Requires `image`.
118
+ * Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own; an explicit empty array clears it while keeping the image CMD (docker `--entrypoint ""` semantics). Empty strings inside a non-empty argv are rejected (422). At most 32 arguments / 4KB. Requires `image`.
119
119
  * @type {Array<string>}
120
120
  * @memberof CreateInstanceRequest
121
121
  */
122
122
  entrypoint?: Array<string>;
123
123
  /**
124
- * Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden). Requires `image`.
124
+ * Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden with a non-empty argv; an empty-array entrypoint clear keeps the image CMD). An explicit empty array clears the CMD. Empty strings inside a non-empty argv are rejected (422). Requires `image`.
125
125
  * @type {Array<string>}
126
126
  * @memberof CreateInstanceRequest
127
127
  */
@@ -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
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpuai/sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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];
@@ -124,13 +124,13 @@ export interface CreateInstanceRequest {
124
124
  */
125
125
  registryCredentialId?: string;
126
126
  /**
127
- * Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own. At most 32 arguments / 4KB. Requires `image`.
127
+ * Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own; an explicit empty array clears it while keeping the image CMD (docker `--entrypoint ""` semantics). Empty strings inside a non-empty argv are rejected (422). At most 32 arguments / 4KB. Requires `image`.
128
128
  * @type {Array<string>}
129
129
  * @memberof CreateInstanceRequest
130
130
  */
131
131
  entrypoint?: Array<string>;
132
132
  /**
133
- * Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden). Requires `image`.
133
+ * Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden with a non-empty argv; an empty-array entrypoint clear keeps the image CMD). An explicit empty array clears the CMD. Empty strings inside a non-empty argv are rejected (422). Requires `image`.
134
134
  * @type {Array<string>}
135
135
  * @memberof CreateInstanceRequest
136
136
  */
@@ -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