Skip to content

Commit d7cb7c6

Browse files
committed
GRPC clients version 11.0.3
1 parent 67689bb commit d7cb7c6

File tree

6 files changed

+106
-4
lines changed

6 files changed

+106
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11.0.2
1+
11.0.3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clarifai-web-grpc",
3-
"version": "11.0.2",
3+
"version": "11.0.3",
44
"description": "The official Clarifai gRPC-web client",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

proto/clarifai/api/resources_pb.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4354,6 +4354,12 @@ export class Output extends jspb.Message {
43544354
hasData(): boolean;
43554355
clearData(): Output;
43564356

4357+
getPromptTokens(): number;
4358+
setPromptTokens(value: number): Output;
4359+
4360+
getCompletionTokens(): number;
4361+
setCompletionTokens(value: number): Output;
4362+
43574363
serializeBinary(): Uint8Array;
43584364
toObject(includeInstance?: boolean): Output.AsObject;
43594365
static toObject(includeInstance: boolean, msg: Output): Output.AsObject;
@@ -4370,6 +4376,8 @@ export namespace Output {
43704376
model?: Model.AsObject,
43714377
input?: Input.AsObject,
43724378
data?: Data.AsObject,
4379+
promptTokens: number,
4380+
completionTokens: number,
43734381
}
43744382
}
43754383

proto/clarifai/api/resources_pb.js

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38402,7 +38402,9 @@ proto.clarifai.api.Output.toObject = function(includeInstance, msg) {
3840238402
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3840338403
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
3840438404
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
38405-
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
38405+
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
38406+
promptTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
38407+
completionTokens: jspb.Message.getFieldWithDefault(msg, 8, 0)
3840638408
};
3840738409

3840838410
if (includeInstance) {
@@ -38468,6 +38470,14 @@ proto.clarifai.api.Output.deserializeBinaryFromReader = function(msg, reader) {
3846838470
reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader);
3846938471
msg.setData(value);
3847038472
break;
38473+
case 7:
38474+
var value = /** @type {number} */ (reader.readUint32());
38475+
msg.setPromptTokens(value);
38476+
break;
38477+
case 8:
38478+
var value = /** @type {number} */ (reader.readUint32());
38479+
msg.setCompletionTokens(value);
38480+
break;
3847138481
default:
3847238482
reader.skipField();
3847338483
break;
@@ -38544,6 +38554,20 @@ proto.clarifai.api.Output.serializeBinaryToWriter = function(message, writer) {
3854438554
proto.clarifai.api.Data.serializeBinaryToWriter
3854538555
);
3854638556
}
38557+
f = message.getPromptTokens();
38558+
if (f !== 0) {
38559+
writer.writeUint32(
38560+
7,
38561+
f
38562+
);
38563+
}
38564+
f = message.getCompletionTokens();
38565+
if (f !== 0) {
38566+
writer.writeUint32(
38567+
8,
38568+
f
38569+
);
38570+
}
3854738571
};
3854838572

3854938573

@@ -38750,6 +38774,42 @@ proto.clarifai.api.Output.prototype.hasData = function() {
3875038774
};
3875138775

3875238776

38777+
/**
38778+
* optional uint32 prompt_tokens = 7;
38779+
* @return {number}
38780+
*/
38781+
proto.clarifai.api.Output.prototype.getPromptTokens = function() {
38782+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
38783+
};
38784+
38785+
38786+
/**
38787+
* @param {number} value
38788+
* @return {!proto.clarifai.api.Output} returns this
38789+
*/
38790+
proto.clarifai.api.Output.prototype.setPromptTokens = function(value) {
38791+
return jspb.Message.setProto3IntField(this, 7, value);
38792+
};
38793+
38794+
38795+
/**
38796+
* optional uint32 completion_tokens = 8;
38797+
* @return {number}
38798+
*/
38799+
proto.clarifai.api.Output.prototype.getCompletionTokens = function() {
38800+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
38801+
};
38802+
38803+
38804+
/**
38805+
* @param {number} value
38806+
* @return {!proto.clarifai.api.Output} returns this
38807+
*/
38808+
proto.clarifai.api.Output.prototype.setCompletionTokens = function(value) {
38809+
return jspb.Message.setProto3IntField(this, 8, value);
38810+
};
38811+
38812+
3875338813

3875438814
/**
3875538815
* List of repeated fields within this message type.

proto/clarifai/api/service_pb.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4478,6 +4478,9 @@ export class PostModelVersionsUploadConfig extends jspb.Message {
44784478
getIsV3(): boolean;
44794479
setIsV3(value: boolean): PostModelVersionsUploadConfig;
44804480

4481+
getStorageRequestSize(): number;
4482+
setStorageRequestSize(value: number): PostModelVersionsUploadConfig;
4483+
44814484
serializeBinary(): Uint8Array;
44824485
toObject(includeInstance?: boolean): PostModelVersionsUploadConfig.AsObject;
44834486
static toObject(includeInstance: boolean, msg: PostModelVersionsUploadConfig): PostModelVersionsUploadConfig.AsObject;
@@ -4493,6 +4496,7 @@ export namespace PostModelVersionsUploadConfig {
44934496
modelVersion?: proto_clarifai_api_resources_pb.ModelVersion.AsObject,
44944497
totalSize: number,
44954498
isV3: boolean,
4499+
storageRequestSize: number,
44964500
}
44974501
}
44984502

proto/clarifai/api/service_pb.js

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42973,7 +42973,8 @@ proto.clarifai.api.PostModelVersionsUploadConfig.toObject = function(includeInst
4297342973
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4297442974
modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
4297542975
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
42976-
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
42976+
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
42977+
storageRequestSize: jspb.Message.getFieldWithDefault(msg, 6, 0)
4297742978
};
4297842979

4297942980
if (includeInstance) {
@@ -43032,6 +43033,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = f
4303243033
var value = /** @type {boolean} */ (reader.readBool());
4303343034
msg.setIsV3(value);
4303443035
break;
43036+
case 6:
43037+
var value = /** @type {number} */ (reader.readUint64());
43038+
msg.setStorageRequestSize(value);
43039+
break;
4303543040
default:
4303643041
reader.skipField();
4303743042
break;
@@ -43098,6 +43103,13 @@ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = funct
4309843103
f
4309943104
);
4310043105
}
43106+
f = message.getStorageRequestSize();
43107+
if (f !== 0) {
43108+
writer.writeUint64(
43109+
6,
43110+
f
43111+
);
43112+
}
4310143113
};
4310243114

4310343115

@@ -43229,6 +43241,24 @@ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setIsV3 = function(va
4322943241
};
4323043242

4323143243

43244+
/**
43245+
* optional uint64 storage_request_size = 6;
43246+
* @return {number}
43247+
*/
43248+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getStorageRequestSize = function() {
43249+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
43250+
};
43251+
43252+
43253+
/**
43254+
* @param {number} value
43255+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
43256+
*/
43257+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setStorageRequestSize = function(value) {
43258+
return jspb.Message.setProto3IntField(this, 6, value);
43259+
};
43260+
43261+
4323243262

4323343263

4323443264

0 commit comments

Comments
 (0)