@miradorlabs/web-grpc 4.15.0 → 4.16.0
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/package.json
CHANGED
|
@@ -4399,6 +4399,11 @@ export interface AIModelPrice {
|
|
|
4399
4399
|
listingId: string;
|
|
4400
4400
|
/** Normalized geography the price applies to (global, us, eu, ...), "" unscoped. */
|
|
4401
4401
|
region: string;
|
|
4402
|
+
/**
|
|
4403
|
+
* The 1-hour prompt-cache write rate the catalog publishes; cache_write_usd_per_mtok is the 5-minute
|
|
4404
|
+
* rate. 0 when the catalog publishes none, and a 1-hour write is then priced at cache_write_usd_per_mtok.
|
|
4405
|
+
*/
|
|
4406
|
+
cacheWrite1hUsdPerMtok: number;
|
|
4402
4407
|
}
|
|
4403
4408
|
|
|
4404
4409
|
export interface AITokenUsage {
|
|
@@ -28158,6 +28163,7 @@ function createBaseAIModelPrice(): AIModelPrice {
|
|
|
28158
28163
|
effortRaw: "",
|
|
28159
28164
|
listingId: "",
|
|
28160
28165
|
region: "",
|
|
28166
|
+
cacheWrite1hUsdPerMtok: 0,
|
|
28161
28167
|
};
|
|
28162
28168
|
}
|
|
28163
28169
|
|
|
@@ -28199,6 +28205,9 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
28199
28205
|
if (message.region !== "") {
|
|
28200
28206
|
writer.uint32(98).string(message.region);
|
|
28201
28207
|
}
|
|
28208
|
+
if (message.cacheWrite1hUsdPerMtok !== 0) {
|
|
28209
|
+
writer.uint32(105).double(message.cacheWrite1hUsdPerMtok);
|
|
28210
|
+
}
|
|
28202
28211
|
return writer;
|
|
28203
28212
|
},
|
|
28204
28213
|
|
|
@@ -28311,6 +28320,14 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
28311
28320
|
message.region = reader.string();
|
|
28312
28321
|
continue;
|
|
28313
28322
|
}
|
|
28323
|
+
case 13: {
|
|
28324
|
+
if (tag !== 105) {
|
|
28325
|
+
break;
|
|
28326
|
+
}
|
|
28327
|
+
|
|
28328
|
+
message.cacheWrite1hUsdPerMtok = reader.double();
|
|
28329
|
+
continue;
|
|
28330
|
+
}
|
|
28314
28331
|
}
|
|
28315
28332
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28316
28333
|
break;
|
|
@@ -28373,6 +28390,11 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
28373
28390
|
? globalThis.String(object.listing_id)
|
|
28374
28391
|
: "",
|
|
28375
28392
|
region: isSet(object.region) ? globalThis.String(object.region) : "",
|
|
28393
|
+
cacheWrite1hUsdPerMtok: isSet(object.cacheWrite1hUsdPerMtok)
|
|
28394
|
+
? globalThis.Number(object.cacheWrite1hUsdPerMtok)
|
|
28395
|
+
: isSet(object.cache_write_1h_usd_per_mtok)
|
|
28396
|
+
? globalThis.Number(object.cache_write_1h_usd_per_mtok)
|
|
28397
|
+
: 0,
|
|
28376
28398
|
};
|
|
28377
28399
|
},
|
|
28378
28400
|
|
|
@@ -28414,6 +28436,9 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
28414
28436
|
if (message.region !== "") {
|
|
28415
28437
|
obj.region = message.region;
|
|
28416
28438
|
}
|
|
28439
|
+
if (message.cacheWrite1hUsdPerMtok !== 0) {
|
|
28440
|
+
obj.cacheWrite1hUsdPerMtok = floatToJson(message.cacheWrite1hUsdPerMtok);
|
|
28441
|
+
}
|
|
28417
28442
|
return obj;
|
|
28418
28443
|
},
|
|
28419
28444
|
|
|
@@ -28434,6 +28459,7 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
28434
28459
|
message.effortRaw = object.effortRaw ?? "";
|
|
28435
28460
|
message.listingId = object.listingId ?? "";
|
|
28436
28461
|
message.region = object.region ?? "";
|
|
28462
|
+
message.cacheWrite1hUsdPerMtok = object.cacheWrite1hUsdPerMtok ?? 0;
|
|
28437
28463
|
return message;
|
|
28438
28464
|
},
|
|
28439
28465
|
};
|
|
@@ -48633,7 +48633,8 @@ cacheWriteUsdPerMtok: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
|
|
|
48633
48633
|
providerRaw: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
48634
48634
|
effortRaw: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
48635
48635
|
listingId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
48636
|
-
region: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
48636
|
+
region: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
48637
|
+
cacheWrite1hUsdPerMtok: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0)
|
|
48637
48638
|
};
|
|
48638
48639
|
|
|
48639
48640
|
if (includeInstance) {
|
|
@@ -48719,6 +48720,10 @@ proto.gateway.web.v1.AIModelPrice.deserializeBinaryFromReader = function(msg, re
|
|
|
48719
48720
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
48720
48721
|
msg.setRegion(value);
|
|
48721
48722
|
break;
|
|
48723
|
+
case 13:
|
|
48724
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48725
|
+
msg.setCacheWrite1hUsdPerMtok(value);
|
|
48726
|
+
break;
|
|
48722
48727
|
default:
|
|
48723
48728
|
reader.skipField();
|
|
48724
48729
|
break;
|
|
@@ -48833,6 +48838,13 @@ proto.gateway.web.v1.AIModelPrice.serializeBinaryToWriter = function(message, wr
|
|
|
48833
48838
|
f
|
|
48834
48839
|
);
|
|
48835
48840
|
}
|
|
48841
|
+
f = message.getCacheWrite1hUsdPerMtok();
|
|
48842
|
+
if (f !== 0.0) {
|
|
48843
|
+
writer.writeDouble(
|
|
48844
|
+
13,
|
|
48845
|
+
f
|
|
48846
|
+
);
|
|
48847
|
+
}
|
|
48836
48848
|
};
|
|
48837
48849
|
|
|
48838
48850
|
|
|
@@ -49071,6 +49083,24 @@ proto.gateway.web.v1.AIModelPrice.prototype.setRegion = function(value) {
|
|
|
49071
49083
|
};
|
|
49072
49084
|
|
|
49073
49085
|
|
|
49086
|
+
/**
|
|
49087
|
+
* optional double cache_write_1h_usd_per_mtok = 13;
|
|
49088
|
+
* @return {number}
|
|
49089
|
+
*/
|
|
49090
|
+
proto.gateway.web.v1.AIModelPrice.prototype.getCacheWrite1hUsdPerMtok = function() {
|
|
49091
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
|
|
49092
|
+
};
|
|
49093
|
+
|
|
49094
|
+
|
|
49095
|
+
/**
|
|
49096
|
+
* @param {number} value
|
|
49097
|
+
* @return {!proto.gateway.web.v1.AIModelPrice} returns this
|
|
49098
|
+
*/
|
|
49099
|
+
proto.gateway.web.v1.AIModelPrice.prototype.setCacheWrite1hUsdPerMtok = function(value) {
|
|
49100
|
+
return jspb.Message.setProto3FloatField(this, 13, value);
|
|
49101
|
+
};
|
|
49102
|
+
|
|
49103
|
+
|
|
49074
49104
|
|
|
49075
49105
|
|
|
49076
49106
|
|