@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 +2 -2
- package/dist/apis/InferenceApi.d.ts +1 -0
- package/dist/apis/InferenceApi.js +2 -1
- package/dist/esm/apis/InferenceApi.d.ts +1 -0
- package/dist/esm/apis/InferenceApi.js +2 -1
- package/dist/esm/models/CreateInstanceRequest.d.ts +2 -2
- package/dist/esm/models/Model.d.ts +2 -1
- package/dist/esm/models/Model.js +2 -1
- package/dist/models/CreateInstanceRequest.d.ts +2 -2
- package/dist/models/Model.d.ts +2 -1
- package/dist/models/Model.js +2 -1
- package/docs/InferenceApi.md +2 -2
- package/package.json +1 -1
- package/src/apis/InferenceApi.ts +2 -1
- package/src/models/CreateInstanceRequest.ts +2 -2
- package/src/models/Model.ts +3 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.3.
|
|
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.
|
|
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];
|
|
@@ -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];
|
|
@@ -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
|
/**
|
package/dist/esm/models/Model.js
CHANGED
|
@@ -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
|
*/
|
package/dist/models/Model.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/models/Model.js
CHANGED
package/docs/InferenceApi.md
CHANGED
|
@@ -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
package/src/apis/InferenceApi.ts
CHANGED
|
@@ -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
|
*/
|
package/src/models/Model.ts
CHANGED
|
@@ -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
|
|