weave-typescript 0.13.0 → 0.14.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/dist/index.d.ts +9 -16
- package/dist/index.js +13 -21
- package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
- package/dist/weaveapi/project/v1/project.pb.js +764 -65
- package/dist/weaveapi/project/v1/service.pb.d.ts +110 -69
- package/dist/weaveapi/project/v1/service.pb.js +1056 -392
- package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
- package/dist/weaveapi/task/v1/service.pb.js +1416 -0
- package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
- package/dist/weaveapi/task/v1/task.pb.js +782 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +10 -0
- package/dist/weavesql/atcdb/event_sql.js +11 -1
- package/dist/weavesql/atcdb/mailbox_sql.d.ts +2 -2
- package/dist/weavesql/atcdb/mailbox_sql.js +1 -1
- package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
- package/dist/weavesql/weavedb/project_sql.js +304 -112
- package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
- package/dist/weavesql/weavedb/task_sql.js +328 -0
- package/package.json +1 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
- package/dist/weaveapi/auth/v1/service.pb.js +0 -5058
- package/dist/weaveapi/auth/v1/session.pb.d.ts +0 -43
- package/dist/weaveapi/auth/v1/session.pb.js +0 -308
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
- package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
- package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
- package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
- package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
- package/dist/weaveapi/data/v1/data.pb.js +0 -411
- package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
- package/dist/weaveapi/data/v1/service.pb.js +0 -2777
- package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
- package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
- package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
- package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
- package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
- package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
- package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
- package/dist/weaveapi/input/v1/input.pb.js +0 -632
- package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/input/v1/service.pb.js +0 -3610
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
- package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
- package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
- package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
- package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
- package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
- package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
- package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
- package/dist/weaveapi/llmx/v1/service.pb.js +0 -5311
- package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
- package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
- package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
- package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
- package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
- package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
- package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
- package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
- package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
- package/dist/weaveapi/report/v1/report.pb.js +0 -678
- package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
- package/dist/weaveapi/report/v1/service.pb.js +0 -1923
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
- package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
- package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
- package/dist/weaveapi/run/v1/run.pb.js +0 -1155
- package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
- package/dist/weaveapi/run/v1/service.pb.js +0 -2426
- package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
- package/dist/weaveapi/script/v1/script.pb.js +0 -1025
- package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
- package/dist/weaveapi/script/v1/service.pb.js +0 -4871
- package/dist/weaveapi/storage/v1/auth.pb.d.ts +0 -27
- package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
- package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
- package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
- package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
- package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
- package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
- package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
- package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
- package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
- package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
- package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
- package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
- package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
- package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
- package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
- package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
- package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
- package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
- package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
- package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
- package/dist/weaveapi/synthesize/v1/service.pb.js +0 -937
- package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
- package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
- package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
- package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
- package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
- package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
|
@@ -1,1472 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.11.6
|
|
5
|
-
// protoc unknown
|
|
6
|
-
// source: weaveapi/llmx/v1/model.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Availability = exports.APIDetails = exports.Configuration = exports.TokenInfo = exports.ModelPerformance_BenchmarkScoresEntry = exports.ModelPerformance = exports.ModelClassification = exports.Model = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
12
|
-
const architecture_pb_1 = require("./architecture.pb");
|
|
13
|
-
const capabilities_pb_1 = require("./capabilities.pb");
|
|
14
|
-
const pricing_pb_1 = require("./pricing.pb");
|
|
15
|
-
exports.protobufPackage = "weaveapi.llmx.v1";
|
|
16
|
-
function createBaseModel() {
|
|
17
|
-
return {
|
|
18
|
-
id: "",
|
|
19
|
-
providerId: "",
|
|
20
|
-
providerSlug: "",
|
|
21
|
-
providerName: "",
|
|
22
|
-
modelId: "",
|
|
23
|
-
slug: "",
|
|
24
|
-
name: "",
|
|
25
|
-
displayName: "",
|
|
26
|
-
description: "",
|
|
27
|
-
version: "",
|
|
28
|
-
releaseDate: undefined,
|
|
29
|
-
trainingDataCutoff: undefined,
|
|
30
|
-
deprecationDate: undefined,
|
|
31
|
-
capabilities: [],
|
|
32
|
-
classification: undefined,
|
|
33
|
-
performance: undefined,
|
|
34
|
-
tokens: undefined,
|
|
35
|
-
pricing: undefined,
|
|
36
|
-
configuration: undefined,
|
|
37
|
-
apiDetails: undefined,
|
|
38
|
-
availability: undefined,
|
|
39
|
-
architecture: undefined,
|
|
40
|
-
training: undefined,
|
|
41
|
-
safety: undefined,
|
|
42
|
-
licensing: undefined,
|
|
43
|
-
technicalSpecs: undefined,
|
|
44
|
-
lastScrapedAt: undefined,
|
|
45
|
-
dataSources: [],
|
|
46
|
-
isActive: false,
|
|
47
|
-
isDeprecated: false,
|
|
48
|
-
replacementModelId: "",
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.Model = {
|
|
52
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
53
|
-
if (message.id !== "") {
|
|
54
|
-
writer.uint32(10).string(message.id);
|
|
55
|
-
}
|
|
56
|
-
if (message.providerId !== "") {
|
|
57
|
-
writer.uint32(18).string(message.providerId);
|
|
58
|
-
}
|
|
59
|
-
if (message.providerSlug !== "") {
|
|
60
|
-
writer.uint32(26).string(message.providerSlug);
|
|
61
|
-
}
|
|
62
|
-
if (message.providerName !== "") {
|
|
63
|
-
writer.uint32(34).string(message.providerName);
|
|
64
|
-
}
|
|
65
|
-
if (message.modelId !== "") {
|
|
66
|
-
writer.uint32(42).string(message.modelId);
|
|
67
|
-
}
|
|
68
|
-
if (message.slug !== "") {
|
|
69
|
-
writer.uint32(50).string(message.slug);
|
|
70
|
-
}
|
|
71
|
-
if (message.name !== "") {
|
|
72
|
-
writer.uint32(58).string(message.name);
|
|
73
|
-
}
|
|
74
|
-
if (message.displayName !== "") {
|
|
75
|
-
writer.uint32(66).string(message.displayName);
|
|
76
|
-
}
|
|
77
|
-
if (message.description !== "") {
|
|
78
|
-
writer.uint32(74).string(message.description);
|
|
79
|
-
}
|
|
80
|
-
if (message.version !== "") {
|
|
81
|
-
writer.uint32(82).string(message.version);
|
|
82
|
-
}
|
|
83
|
-
if (message.releaseDate !== undefined) {
|
|
84
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.releaseDate), writer.uint32(90).fork()).join();
|
|
85
|
-
}
|
|
86
|
-
if (message.trainingDataCutoff !== undefined) {
|
|
87
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.trainingDataCutoff), writer.uint32(98).fork()).join();
|
|
88
|
-
}
|
|
89
|
-
if (message.deprecationDate !== undefined) {
|
|
90
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.deprecationDate), writer.uint32(106).fork()).join();
|
|
91
|
-
}
|
|
92
|
-
for (const v of message.capabilities) {
|
|
93
|
-
capabilities_pb_1.Capability.encode(v, writer.uint32(114).fork()).join();
|
|
94
|
-
}
|
|
95
|
-
if (message.classification !== undefined) {
|
|
96
|
-
exports.ModelClassification.encode(message.classification, writer.uint32(122).fork()).join();
|
|
97
|
-
}
|
|
98
|
-
if (message.performance !== undefined) {
|
|
99
|
-
exports.ModelPerformance.encode(message.performance, writer.uint32(130).fork()).join();
|
|
100
|
-
}
|
|
101
|
-
if (message.tokens !== undefined) {
|
|
102
|
-
exports.TokenInfo.encode(message.tokens, writer.uint32(138).fork()).join();
|
|
103
|
-
}
|
|
104
|
-
if (message.pricing !== undefined) {
|
|
105
|
-
pricing_pb_1.Pricing.encode(message.pricing, writer.uint32(146).fork()).join();
|
|
106
|
-
}
|
|
107
|
-
if (message.configuration !== undefined) {
|
|
108
|
-
exports.Configuration.encode(message.configuration, writer.uint32(154).fork()).join();
|
|
109
|
-
}
|
|
110
|
-
if (message.apiDetails !== undefined) {
|
|
111
|
-
exports.APIDetails.encode(message.apiDetails, writer.uint32(162).fork()).join();
|
|
112
|
-
}
|
|
113
|
-
if (message.availability !== undefined) {
|
|
114
|
-
exports.Availability.encode(message.availability, writer.uint32(170).fork()).join();
|
|
115
|
-
}
|
|
116
|
-
if (message.architecture !== undefined) {
|
|
117
|
-
architecture_pb_1.Architecture.encode(message.architecture, writer.uint32(178).fork()).join();
|
|
118
|
-
}
|
|
119
|
-
if (message.training !== undefined) {
|
|
120
|
-
architecture_pb_1.Training.encode(message.training, writer.uint32(186).fork()).join();
|
|
121
|
-
}
|
|
122
|
-
if (message.safety !== undefined) {
|
|
123
|
-
architecture_pb_1.Safety.encode(message.safety, writer.uint32(194).fork()).join();
|
|
124
|
-
}
|
|
125
|
-
if (message.licensing !== undefined) {
|
|
126
|
-
architecture_pb_1.Licensing.encode(message.licensing, writer.uint32(202).fork()).join();
|
|
127
|
-
}
|
|
128
|
-
if (message.technicalSpecs !== undefined) {
|
|
129
|
-
architecture_pb_1.TechnicalSpecs.encode(message.technicalSpecs, writer.uint32(210).fork()).join();
|
|
130
|
-
}
|
|
131
|
-
if (message.lastScrapedAt !== undefined) {
|
|
132
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastScrapedAt), writer.uint32(218).fork()).join();
|
|
133
|
-
}
|
|
134
|
-
for (const v of message.dataSources) {
|
|
135
|
-
writer.uint32(226).string(v);
|
|
136
|
-
}
|
|
137
|
-
if (message.isActive !== false) {
|
|
138
|
-
writer.uint32(232).bool(message.isActive);
|
|
139
|
-
}
|
|
140
|
-
if (message.isDeprecated !== false) {
|
|
141
|
-
writer.uint32(240).bool(message.isDeprecated);
|
|
142
|
-
}
|
|
143
|
-
if (message.replacementModelId !== "") {
|
|
144
|
-
writer.uint32(250).string(message.replacementModelId);
|
|
145
|
-
}
|
|
146
|
-
return writer;
|
|
147
|
-
},
|
|
148
|
-
decode(input, length) {
|
|
149
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
150
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
151
|
-
const message = createBaseModel();
|
|
152
|
-
while (reader.pos < end) {
|
|
153
|
-
const tag = reader.uint32();
|
|
154
|
-
switch (tag >>> 3) {
|
|
155
|
-
case 1: {
|
|
156
|
-
if (tag !== 10) {
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
message.id = reader.string();
|
|
160
|
-
continue;
|
|
161
|
-
}
|
|
162
|
-
case 2: {
|
|
163
|
-
if (tag !== 18) {
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
message.providerId = reader.string();
|
|
167
|
-
continue;
|
|
168
|
-
}
|
|
169
|
-
case 3: {
|
|
170
|
-
if (tag !== 26) {
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
message.providerSlug = reader.string();
|
|
174
|
-
continue;
|
|
175
|
-
}
|
|
176
|
-
case 4: {
|
|
177
|
-
if (tag !== 34) {
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
message.providerName = reader.string();
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
case 5: {
|
|
184
|
-
if (tag !== 42) {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
message.modelId = reader.string();
|
|
188
|
-
continue;
|
|
189
|
-
}
|
|
190
|
-
case 6: {
|
|
191
|
-
if (tag !== 50) {
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
message.slug = reader.string();
|
|
195
|
-
continue;
|
|
196
|
-
}
|
|
197
|
-
case 7: {
|
|
198
|
-
if (tag !== 58) {
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
message.name = reader.string();
|
|
202
|
-
continue;
|
|
203
|
-
}
|
|
204
|
-
case 8: {
|
|
205
|
-
if (tag !== 66) {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
message.displayName = reader.string();
|
|
209
|
-
continue;
|
|
210
|
-
}
|
|
211
|
-
case 9: {
|
|
212
|
-
if (tag !== 74) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
message.description = reader.string();
|
|
216
|
-
continue;
|
|
217
|
-
}
|
|
218
|
-
case 10: {
|
|
219
|
-
if (tag !== 82) {
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
message.version = reader.string();
|
|
223
|
-
continue;
|
|
224
|
-
}
|
|
225
|
-
case 11: {
|
|
226
|
-
if (tag !== 90) {
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
message.releaseDate = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
230
|
-
continue;
|
|
231
|
-
}
|
|
232
|
-
case 12: {
|
|
233
|
-
if (tag !== 98) {
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
message.trainingDataCutoff = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
237
|
-
continue;
|
|
238
|
-
}
|
|
239
|
-
case 13: {
|
|
240
|
-
if (tag !== 106) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
message.deprecationDate = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
244
|
-
continue;
|
|
245
|
-
}
|
|
246
|
-
case 14: {
|
|
247
|
-
if (tag !== 114) {
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
message.capabilities.push(capabilities_pb_1.Capability.decode(reader, reader.uint32()));
|
|
251
|
-
continue;
|
|
252
|
-
}
|
|
253
|
-
case 15: {
|
|
254
|
-
if (tag !== 122) {
|
|
255
|
-
break;
|
|
256
|
-
}
|
|
257
|
-
message.classification = exports.ModelClassification.decode(reader, reader.uint32());
|
|
258
|
-
continue;
|
|
259
|
-
}
|
|
260
|
-
case 16: {
|
|
261
|
-
if (tag !== 130) {
|
|
262
|
-
break;
|
|
263
|
-
}
|
|
264
|
-
message.performance = exports.ModelPerformance.decode(reader, reader.uint32());
|
|
265
|
-
continue;
|
|
266
|
-
}
|
|
267
|
-
case 17: {
|
|
268
|
-
if (tag !== 138) {
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
message.tokens = exports.TokenInfo.decode(reader, reader.uint32());
|
|
272
|
-
continue;
|
|
273
|
-
}
|
|
274
|
-
case 18: {
|
|
275
|
-
if (tag !== 146) {
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
message.pricing = pricing_pb_1.Pricing.decode(reader, reader.uint32());
|
|
279
|
-
continue;
|
|
280
|
-
}
|
|
281
|
-
case 19: {
|
|
282
|
-
if (tag !== 154) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
message.configuration = exports.Configuration.decode(reader, reader.uint32());
|
|
286
|
-
continue;
|
|
287
|
-
}
|
|
288
|
-
case 20: {
|
|
289
|
-
if (tag !== 162) {
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
message.apiDetails = exports.APIDetails.decode(reader, reader.uint32());
|
|
293
|
-
continue;
|
|
294
|
-
}
|
|
295
|
-
case 21: {
|
|
296
|
-
if (tag !== 170) {
|
|
297
|
-
break;
|
|
298
|
-
}
|
|
299
|
-
message.availability = exports.Availability.decode(reader, reader.uint32());
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
case 22: {
|
|
303
|
-
if (tag !== 178) {
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
message.architecture = architecture_pb_1.Architecture.decode(reader, reader.uint32());
|
|
307
|
-
continue;
|
|
308
|
-
}
|
|
309
|
-
case 23: {
|
|
310
|
-
if (tag !== 186) {
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
message.training = architecture_pb_1.Training.decode(reader, reader.uint32());
|
|
314
|
-
continue;
|
|
315
|
-
}
|
|
316
|
-
case 24: {
|
|
317
|
-
if (tag !== 194) {
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
message.safety = architecture_pb_1.Safety.decode(reader, reader.uint32());
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
case 25: {
|
|
324
|
-
if (tag !== 202) {
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
message.licensing = architecture_pb_1.Licensing.decode(reader, reader.uint32());
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
case 26: {
|
|
331
|
-
if (tag !== 210) {
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
message.technicalSpecs = architecture_pb_1.TechnicalSpecs.decode(reader, reader.uint32());
|
|
335
|
-
continue;
|
|
336
|
-
}
|
|
337
|
-
case 27: {
|
|
338
|
-
if (tag !== 218) {
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
message.lastScrapedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
342
|
-
continue;
|
|
343
|
-
}
|
|
344
|
-
case 28: {
|
|
345
|
-
if (tag !== 226) {
|
|
346
|
-
break;
|
|
347
|
-
}
|
|
348
|
-
message.dataSources.push(reader.string());
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
case 29: {
|
|
352
|
-
if (tag !== 232) {
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
message.isActive = reader.bool();
|
|
356
|
-
continue;
|
|
357
|
-
}
|
|
358
|
-
case 30: {
|
|
359
|
-
if (tag !== 240) {
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
message.isDeprecated = reader.bool();
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
case 31: {
|
|
366
|
-
if (tag !== 250) {
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
message.replacementModelId = reader.string();
|
|
370
|
-
continue;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
reader.skip(tag & 7);
|
|
377
|
-
}
|
|
378
|
-
return message;
|
|
379
|
-
},
|
|
380
|
-
fromJSON(object) {
|
|
381
|
-
return {
|
|
382
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
383
|
-
providerId: isSet(object.providerId)
|
|
384
|
-
? globalThis.String(object.providerId)
|
|
385
|
-
: isSet(object.provider_id)
|
|
386
|
-
? globalThis.String(object.provider_id)
|
|
387
|
-
: "",
|
|
388
|
-
providerSlug: isSet(object.providerSlug)
|
|
389
|
-
? globalThis.String(object.providerSlug)
|
|
390
|
-
: isSet(object.provider_slug)
|
|
391
|
-
? globalThis.String(object.provider_slug)
|
|
392
|
-
: "",
|
|
393
|
-
providerName: isSet(object.providerName)
|
|
394
|
-
? globalThis.String(object.providerName)
|
|
395
|
-
: isSet(object.provider_name)
|
|
396
|
-
? globalThis.String(object.provider_name)
|
|
397
|
-
: "",
|
|
398
|
-
modelId: isSet(object.modelId)
|
|
399
|
-
? globalThis.String(object.modelId)
|
|
400
|
-
: isSet(object.model_id)
|
|
401
|
-
? globalThis.String(object.model_id)
|
|
402
|
-
: "",
|
|
403
|
-
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
404
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
405
|
-
displayName: isSet(object.displayName)
|
|
406
|
-
? globalThis.String(object.displayName)
|
|
407
|
-
: isSet(object.display_name)
|
|
408
|
-
? globalThis.String(object.display_name)
|
|
409
|
-
: "",
|
|
410
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
411
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
412
|
-
releaseDate: isSet(object.releaseDate)
|
|
413
|
-
? fromJsonTimestamp(object.releaseDate)
|
|
414
|
-
: isSet(object.release_date)
|
|
415
|
-
? fromJsonTimestamp(object.release_date)
|
|
416
|
-
: undefined,
|
|
417
|
-
trainingDataCutoff: isSet(object.trainingDataCutoff)
|
|
418
|
-
? fromJsonTimestamp(object.trainingDataCutoff)
|
|
419
|
-
: isSet(object.training_data_cutoff)
|
|
420
|
-
? fromJsonTimestamp(object.training_data_cutoff)
|
|
421
|
-
: undefined,
|
|
422
|
-
deprecationDate: isSet(object.deprecationDate)
|
|
423
|
-
? fromJsonTimestamp(object.deprecationDate)
|
|
424
|
-
: isSet(object.deprecation_date)
|
|
425
|
-
? fromJsonTimestamp(object.deprecation_date)
|
|
426
|
-
: undefined,
|
|
427
|
-
capabilities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.capabilities)
|
|
428
|
-
? object.capabilities.map((e) => capabilities_pb_1.Capability.fromJSON(e))
|
|
429
|
-
: [],
|
|
430
|
-
classification: isSet(object.classification) ? exports.ModelClassification.fromJSON(object.classification) : undefined,
|
|
431
|
-
performance: isSet(object.performance) ? exports.ModelPerformance.fromJSON(object.performance) : undefined,
|
|
432
|
-
tokens: isSet(object.tokens) ? exports.TokenInfo.fromJSON(object.tokens) : undefined,
|
|
433
|
-
pricing: isSet(object.pricing) ? pricing_pb_1.Pricing.fromJSON(object.pricing) : undefined,
|
|
434
|
-
configuration: isSet(object.configuration) ? exports.Configuration.fromJSON(object.configuration) : undefined,
|
|
435
|
-
apiDetails: isSet(object.apiDetails)
|
|
436
|
-
? exports.APIDetails.fromJSON(object.apiDetails)
|
|
437
|
-
: isSet(object.api_details)
|
|
438
|
-
? exports.APIDetails.fromJSON(object.api_details)
|
|
439
|
-
: undefined,
|
|
440
|
-
availability: isSet(object.availability) ? exports.Availability.fromJSON(object.availability) : undefined,
|
|
441
|
-
architecture: isSet(object.architecture) ? architecture_pb_1.Architecture.fromJSON(object.architecture) : undefined,
|
|
442
|
-
training: isSet(object.training) ? architecture_pb_1.Training.fromJSON(object.training) : undefined,
|
|
443
|
-
safety: isSet(object.safety) ? architecture_pb_1.Safety.fromJSON(object.safety) : undefined,
|
|
444
|
-
licensing: isSet(object.licensing) ? architecture_pb_1.Licensing.fromJSON(object.licensing) : undefined,
|
|
445
|
-
technicalSpecs: isSet(object.technicalSpecs)
|
|
446
|
-
? architecture_pb_1.TechnicalSpecs.fromJSON(object.technicalSpecs)
|
|
447
|
-
: isSet(object.technical_specs)
|
|
448
|
-
? architecture_pb_1.TechnicalSpecs.fromJSON(object.technical_specs)
|
|
449
|
-
: undefined,
|
|
450
|
-
lastScrapedAt: isSet(object.lastScrapedAt)
|
|
451
|
-
? fromJsonTimestamp(object.lastScrapedAt)
|
|
452
|
-
: isSet(object.last_scraped_at)
|
|
453
|
-
? fromJsonTimestamp(object.last_scraped_at)
|
|
454
|
-
: undefined,
|
|
455
|
-
dataSources: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.dataSources)
|
|
456
|
-
? object.dataSources.map((e) => globalThis.String(e))
|
|
457
|
-
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.data_sources)
|
|
458
|
-
? object.data_sources.map((e) => globalThis.String(e))
|
|
459
|
-
: [],
|
|
460
|
-
isActive: isSet(object.isActive)
|
|
461
|
-
? globalThis.Boolean(object.isActive)
|
|
462
|
-
: isSet(object.is_active)
|
|
463
|
-
? globalThis.Boolean(object.is_active)
|
|
464
|
-
: false,
|
|
465
|
-
isDeprecated: isSet(object.isDeprecated)
|
|
466
|
-
? globalThis.Boolean(object.isDeprecated)
|
|
467
|
-
: isSet(object.is_deprecated)
|
|
468
|
-
? globalThis.Boolean(object.is_deprecated)
|
|
469
|
-
: false,
|
|
470
|
-
replacementModelId: isSet(object.replacementModelId)
|
|
471
|
-
? globalThis.String(object.replacementModelId)
|
|
472
|
-
: isSet(object.replacement_model_id)
|
|
473
|
-
? globalThis.String(object.replacement_model_id)
|
|
474
|
-
: "",
|
|
475
|
-
};
|
|
476
|
-
},
|
|
477
|
-
toJSON(message) {
|
|
478
|
-
var _a, _b;
|
|
479
|
-
const obj = {};
|
|
480
|
-
if (message.id !== "") {
|
|
481
|
-
obj.id = message.id;
|
|
482
|
-
}
|
|
483
|
-
if (message.providerId !== "") {
|
|
484
|
-
obj.providerId = message.providerId;
|
|
485
|
-
}
|
|
486
|
-
if (message.providerSlug !== "") {
|
|
487
|
-
obj.providerSlug = message.providerSlug;
|
|
488
|
-
}
|
|
489
|
-
if (message.providerName !== "") {
|
|
490
|
-
obj.providerName = message.providerName;
|
|
491
|
-
}
|
|
492
|
-
if (message.modelId !== "") {
|
|
493
|
-
obj.modelId = message.modelId;
|
|
494
|
-
}
|
|
495
|
-
if (message.slug !== "") {
|
|
496
|
-
obj.slug = message.slug;
|
|
497
|
-
}
|
|
498
|
-
if (message.name !== "") {
|
|
499
|
-
obj.name = message.name;
|
|
500
|
-
}
|
|
501
|
-
if (message.displayName !== "") {
|
|
502
|
-
obj.displayName = message.displayName;
|
|
503
|
-
}
|
|
504
|
-
if (message.description !== "") {
|
|
505
|
-
obj.description = message.description;
|
|
506
|
-
}
|
|
507
|
-
if (message.version !== "") {
|
|
508
|
-
obj.version = message.version;
|
|
509
|
-
}
|
|
510
|
-
if (message.releaseDate !== undefined) {
|
|
511
|
-
obj.releaseDate = message.releaseDate.toISOString();
|
|
512
|
-
}
|
|
513
|
-
if (message.trainingDataCutoff !== undefined) {
|
|
514
|
-
obj.trainingDataCutoff = message.trainingDataCutoff.toISOString();
|
|
515
|
-
}
|
|
516
|
-
if (message.deprecationDate !== undefined) {
|
|
517
|
-
obj.deprecationDate = message.deprecationDate.toISOString();
|
|
518
|
-
}
|
|
519
|
-
if ((_a = message.capabilities) === null || _a === void 0 ? void 0 : _a.length) {
|
|
520
|
-
obj.capabilities = message.capabilities.map((e) => capabilities_pb_1.Capability.toJSON(e));
|
|
521
|
-
}
|
|
522
|
-
if (message.classification !== undefined) {
|
|
523
|
-
obj.classification = exports.ModelClassification.toJSON(message.classification);
|
|
524
|
-
}
|
|
525
|
-
if (message.performance !== undefined) {
|
|
526
|
-
obj.performance = exports.ModelPerformance.toJSON(message.performance);
|
|
527
|
-
}
|
|
528
|
-
if (message.tokens !== undefined) {
|
|
529
|
-
obj.tokens = exports.TokenInfo.toJSON(message.tokens);
|
|
530
|
-
}
|
|
531
|
-
if (message.pricing !== undefined) {
|
|
532
|
-
obj.pricing = pricing_pb_1.Pricing.toJSON(message.pricing);
|
|
533
|
-
}
|
|
534
|
-
if (message.configuration !== undefined) {
|
|
535
|
-
obj.configuration = exports.Configuration.toJSON(message.configuration);
|
|
536
|
-
}
|
|
537
|
-
if (message.apiDetails !== undefined) {
|
|
538
|
-
obj.apiDetails = exports.APIDetails.toJSON(message.apiDetails);
|
|
539
|
-
}
|
|
540
|
-
if (message.availability !== undefined) {
|
|
541
|
-
obj.availability = exports.Availability.toJSON(message.availability);
|
|
542
|
-
}
|
|
543
|
-
if (message.architecture !== undefined) {
|
|
544
|
-
obj.architecture = architecture_pb_1.Architecture.toJSON(message.architecture);
|
|
545
|
-
}
|
|
546
|
-
if (message.training !== undefined) {
|
|
547
|
-
obj.training = architecture_pb_1.Training.toJSON(message.training);
|
|
548
|
-
}
|
|
549
|
-
if (message.safety !== undefined) {
|
|
550
|
-
obj.safety = architecture_pb_1.Safety.toJSON(message.safety);
|
|
551
|
-
}
|
|
552
|
-
if (message.licensing !== undefined) {
|
|
553
|
-
obj.licensing = architecture_pb_1.Licensing.toJSON(message.licensing);
|
|
554
|
-
}
|
|
555
|
-
if (message.technicalSpecs !== undefined) {
|
|
556
|
-
obj.technicalSpecs = architecture_pb_1.TechnicalSpecs.toJSON(message.technicalSpecs);
|
|
557
|
-
}
|
|
558
|
-
if (message.lastScrapedAt !== undefined) {
|
|
559
|
-
obj.lastScrapedAt = message.lastScrapedAt.toISOString();
|
|
560
|
-
}
|
|
561
|
-
if ((_b = message.dataSources) === null || _b === void 0 ? void 0 : _b.length) {
|
|
562
|
-
obj.dataSources = message.dataSources;
|
|
563
|
-
}
|
|
564
|
-
if (message.isActive !== false) {
|
|
565
|
-
obj.isActive = message.isActive;
|
|
566
|
-
}
|
|
567
|
-
if (message.isDeprecated !== false) {
|
|
568
|
-
obj.isDeprecated = message.isDeprecated;
|
|
569
|
-
}
|
|
570
|
-
if (message.replacementModelId !== "") {
|
|
571
|
-
obj.replacementModelId = message.replacementModelId;
|
|
572
|
-
}
|
|
573
|
-
return obj;
|
|
574
|
-
},
|
|
575
|
-
create(base) {
|
|
576
|
-
return exports.Model.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
577
|
-
},
|
|
578
|
-
fromPartial(object) {
|
|
579
|
-
var _a, _b;
|
|
580
|
-
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
581
|
-
const message = createBaseModel();
|
|
582
|
-
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
583
|
-
message.providerId = (_d = object.providerId) !== null && _d !== void 0 ? _d : "";
|
|
584
|
-
message.providerSlug = (_e = object.providerSlug) !== null && _e !== void 0 ? _e : "";
|
|
585
|
-
message.providerName = (_f = object.providerName) !== null && _f !== void 0 ? _f : "";
|
|
586
|
-
message.modelId = (_g = object.modelId) !== null && _g !== void 0 ? _g : "";
|
|
587
|
-
message.slug = (_h = object.slug) !== null && _h !== void 0 ? _h : "";
|
|
588
|
-
message.name = (_j = object.name) !== null && _j !== void 0 ? _j : "";
|
|
589
|
-
message.displayName = (_k = object.displayName) !== null && _k !== void 0 ? _k : "";
|
|
590
|
-
message.description = (_l = object.description) !== null && _l !== void 0 ? _l : "";
|
|
591
|
-
message.version = (_m = object.version) !== null && _m !== void 0 ? _m : "";
|
|
592
|
-
message.releaseDate = (_o = object.releaseDate) !== null && _o !== void 0 ? _o : undefined;
|
|
593
|
-
message.trainingDataCutoff = (_p = object.trainingDataCutoff) !== null && _p !== void 0 ? _p : undefined;
|
|
594
|
-
message.deprecationDate = (_q = object.deprecationDate) !== null && _q !== void 0 ? _q : undefined;
|
|
595
|
-
message.capabilities = ((_a = object.capabilities) === null || _a === void 0 ? void 0 : _a.map((e) => capabilities_pb_1.Capability.fromPartial(e))) || [];
|
|
596
|
-
message.classification = (object.classification !== undefined && object.classification !== null)
|
|
597
|
-
? exports.ModelClassification.fromPartial(object.classification)
|
|
598
|
-
: undefined;
|
|
599
|
-
message.performance = (object.performance !== undefined && object.performance !== null)
|
|
600
|
-
? exports.ModelPerformance.fromPartial(object.performance)
|
|
601
|
-
: undefined;
|
|
602
|
-
message.tokens = (object.tokens !== undefined && object.tokens !== null)
|
|
603
|
-
? exports.TokenInfo.fromPartial(object.tokens)
|
|
604
|
-
: undefined;
|
|
605
|
-
message.pricing = (object.pricing !== undefined && object.pricing !== null)
|
|
606
|
-
? pricing_pb_1.Pricing.fromPartial(object.pricing)
|
|
607
|
-
: undefined;
|
|
608
|
-
message.configuration = (object.configuration !== undefined && object.configuration !== null)
|
|
609
|
-
? exports.Configuration.fromPartial(object.configuration)
|
|
610
|
-
: undefined;
|
|
611
|
-
message.apiDetails = (object.apiDetails !== undefined && object.apiDetails !== null)
|
|
612
|
-
? exports.APIDetails.fromPartial(object.apiDetails)
|
|
613
|
-
: undefined;
|
|
614
|
-
message.availability = (object.availability !== undefined && object.availability !== null)
|
|
615
|
-
? exports.Availability.fromPartial(object.availability)
|
|
616
|
-
: undefined;
|
|
617
|
-
message.architecture = (object.architecture !== undefined && object.architecture !== null)
|
|
618
|
-
? architecture_pb_1.Architecture.fromPartial(object.architecture)
|
|
619
|
-
: undefined;
|
|
620
|
-
message.training = (object.training !== undefined && object.training !== null)
|
|
621
|
-
? architecture_pb_1.Training.fromPartial(object.training)
|
|
622
|
-
: undefined;
|
|
623
|
-
message.safety = (object.safety !== undefined && object.safety !== null)
|
|
624
|
-
? architecture_pb_1.Safety.fromPartial(object.safety)
|
|
625
|
-
: undefined;
|
|
626
|
-
message.licensing = (object.licensing !== undefined && object.licensing !== null)
|
|
627
|
-
? architecture_pb_1.Licensing.fromPartial(object.licensing)
|
|
628
|
-
: undefined;
|
|
629
|
-
message.technicalSpecs = (object.technicalSpecs !== undefined && object.technicalSpecs !== null)
|
|
630
|
-
? architecture_pb_1.TechnicalSpecs.fromPartial(object.technicalSpecs)
|
|
631
|
-
: undefined;
|
|
632
|
-
message.lastScrapedAt = (_r = object.lastScrapedAt) !== null && _r !== void 0 ? _r : undefined;
|
|
633
|
-
message.dataSources = ((_b = object.dataSources) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
634
|
-
message.isActive = (_s = object.isActive) !== null && _s !== void 0 ? _s : false;
|
|
635
|
-
message.isDeprecated = (_t = object.isDeprecated) !== null && _t !== void 0 ? _t : false;
|
|
636
|
-
message.replacementModelId = (_u = object.replacementModelId) !== null && _u !== void 0 ? _u : "";
|
|
637
|
-
return message;
|
|
638
|
-
},
|
|
639
|
-
};
|
|
640
|
-
function createBaseModelClassification() {
|
|
641
|
-
return { modelType: "", architecture: "", parameterCount: 0, isOpenSource: false, licenseType: "" };
|
|
642
|
-
}
|
|
643
|
-
exports.ModelClassification = {
|
|
644
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
645
|
-
if (message.modelType !== "") {
|
|
646
|
-
writer.uint32(10).string(message.modelType);
|
|
647
|
-
}
|
|
648
|
-
if (message.architecture !== "") {
|
|
649
|
-
writer.uint32(18).string(message.architecture);
|
|
650
|
-
}
|
|
651
|
-
if (message.parameterCount !== 0) {
|
|
652
|
-
writer.uint32(24).int64(message.parameterCount);
|
|
653
|
-
}
|
|
654
|
-
if (message.isOpenSource !== false) {
|
|
655
|
-
writer.uint32(32).bool(message.isOpenSource);
|
|
656
|
-
}
|
|
657
|
-
if (message.licenseType !== "") {
|
|
658
|
-
writer.uint32(42).string(message.licenseType);
|
|
659
|
-
}
|
|
660
|
-
return writer;
|
|
661
|
-
},
|
|
662
|
-
decode(input, length) {
|
|
663
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
664
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
665
|
-
const message = createBaseModelClassification();
|
|
666
|
-
while (reader.pos < end) {
|
|
667
|
-
const tag = reader.uint32();
|
|
668
|
-
switch (tag >>> 3) {
|
|
669
|
-
case 1: {
|
|
670
|
-
if (tag !== 10) {
|
|
671
|
-
break;
|
|
672
|
-
}
|
|
673
|
-
message.modelType = reader.string();
|
|
674
|
-
continue;
|
|
675
|
-
}
|
|
676
|
-
case 2: {
|
|
677
|
-
if (tag !== 18) {
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
message.architecture = reader.string();
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
case 3: {
|
|
684
|
-
if (tag !== 24) {
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
message.parameterCount = longToNumber(reader.int64());
|
|
688
|
-
continue;
|
|
689
|
-
}
|
|
690
|
-
case 4: {
|
|
691
|
-
if (tag !== 32) {
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
message.isOpenSource = reader.bool();
|
|
695
|
-
continue;
|
|
696
|
-
}
|
|
697
|
-
case 5: {
|
|
698
|
-
if (tag !== 42) {
|
|
699
|
-
break;
|
|
700
|
-
}
|
|
701
|
-
message.licenseType = reader.string();
|
|
702
|
-
continue;
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
706
|
-
break;
|
|
707
|
-
}
|
|
708
|
-
reader.skip(tag & 7);
|
|
709
|
-
}
|
|
710
|
-
return message;
|
|
711
|
-
},
|
|
712
|
-
fromJSON(object) {
|
|
713
|
-
return {
|
|
714
|
-
modelType: isSet(object.modelType)
|
|
715
|
-
? globalThis.String(object.modelType)
|
|
716
|
-
: isSet(object.model_type)
|
|
717
|
-
? globalThis.String(object.model_type)
|
|
718
|
-
: "",
|
|
719
|
-
architecture: isSet(object.architecture) ? globalThis.String(object.architecture) : "",
|
|
720
|
-
parameterCount: isSet(object.parameterCount)
|
|
721
|
-
? globalThis.Number(object.parameterCount)
|
|
722
|
-
: isSet(object.parameter_count)
|
|
723
|
-
? globalThis.Number(object.parameter_count)
|
|
724
|
-
: 0,
|
|
725
|
-
isOpenSource: isSet(object.isOpenSource)
|
|
726
|
-
? globalThis.Boolean(object.isOpenSource)
|
|
727
|
-
: isSet(object.is_open_source)
|
|
728
|
-
? globalThis.Boolean(object.is_open_source)
|
|
729
|
-
: false,
|
|
730
|
-
licenseType: isSet(object.licenseType)
|
|
731
|
-
? globalThis.String(object.licenseType)
|
|
732
|
-
: isSet(object.license_type)
|
|
733
|
-
? globalThis.String(object.license_type)
|
|
734
|
-
: "",
|
|
735
|
-
};
|
|
736
|
-
},
|
|
737
|
-
toJSON(message) {
|
|
738
|
-
const obj = {};
|
|
739
|
-
if (message.modelType !== "") {
|
|
740
|
-
obj.modelType = message.modelType;
|
|
741
|
-
}
|
|
742
|
-
if (message.architecture !== "") {
|
|
743
|
-
obj.architecture = message.architecture;
|
|
744
|
-
}
|
|
745
|
-
if (message.parameterCount !== 0) {
|
|
746
|
-
obj.parameterCount = Math.round(message.parameterCount);
|
|
747
|
-
}
|
|
748
|
-
if (message.isOpenSource !== false) {
|
|
749
|
-
obj.isOpenSource = message.isOpenSource;
|
|
750
|
-
}
|
|
751
|
-
if (message.licenseType !== "") {
|
|
752
|
-
obj.licenseType = message.licenseType;
|
|
753
|
-
}
|
|
754
|
-
return obj;
|
|
755
|
-
},
|
|
756
|
-
create(base) {
|
|
757
|
-
return exports.ModelClassification.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
758
|
-
},
|
|
759
|
-
fromPartial(object) {
|
|
760
|
-
var _a, _b, _c, _d, _e;
|
|
761
|
-
const message = createBaseModelClassification();
|
|
762
|
-
message.modelType = (_a = object.modelType) !== null && _a !== void 0 ? _a : "";
|
|
763
|
-
message.architecture = (_b = object.architecture) !== null && _b !== void 0 ? _b : "";
|
|
764
|
-
message.parameterCount = (_c = object.parameterCount) !== null && _c !== void 0 ? _c : 0;
|
|
765
|
-
message.isOpenSource = (_d = object.isOpenSource) !== null && _d !== void 0 ? _d : false;
|
|
766
|
-
message.licenseType = (_e = object.licenseType) !== null && _e !== void 0 ? _e : "";
|
|
767
|
-
return message;
|
|
768
|
-
},
|
|
769
|
-
};
|
|
770
|
-
function createBaseModelPerformance() {
|
|
771
|
-
return { reasoningScore: 0, codingScore: 0, creativeScore: 0, factualScore: 0, mathScore: 0, benchmarkScores: {} };
|
|
772
|
-
}
|
|
773
|
-
exports.ModelPerformance = {
|
|
774
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
775
|
-
if (message.reasoningScore !== 0) {
|
|
776
|
-
writer.uint32(9).double(message.reasoningScore);
|
|
777
|
-
}
|
|
778
|
-
if (message.codingScore !== 0) {
|
|
779
|
-
writer.uint32(17).double(message.codingScore);
|
|
780
|
-
}
|
|
781
|
-
if (message.creativeScore !== 0) {
|
|
782
|
-
writer.uint32(25).double(message.creativeScore);
|
|
783
|
-
}
|
|
784
|
-
if (message.factualScore !== 0) {
|
|
785
|
-
writer.uint32(33).double(message.factualScore);
|
|
786
|
-
}
|
|
787
|
-
if (message.mathScore !== 0) {
|
|
788
|
-
writer.uint32(41).double(message.mathScore);
|
|
789
|
-
}
|
|
790
|
-
globalThis.Object.entries(message.benchmarkScores).forEach(([key, value]) => {
|
|
791
|
-
exports.ModelPerformance_BenchmarkScoresEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
|
|
792
|
-
});
|
|
793
|
-
return writer;
|
|
794
|
-
},
|
|
795
|
-
decode(input, length) {
|
|
796
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
797
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
798
|
-
const message = createBaseModelPerformance();
|
|
799
|
-
while (reader.pos < end) {
|
|
800
|
-
const tag = reader.uint32();
|
|
801
|
-
switch (tag >>> 3) {
|
|
802
|
-
case 1: {
|
|
803
|
-
if (tag !== 9) {
|
|
804
|
-
break;
|
|
805
|
-
}
|
|
806
|
-
message.reasoningScore = reader.double();
|
|
807
|
-
continue;
|
|
808
|
-
}
|
|
809
|
-
case 2: {
|
|
810
|
-
if (tag !== 17) {
|
|
811
|
-
break;
|
|
812
|
-
}
|
|
813
|
-
message.codingScore = reader.double();
|
|
814
|
-
continue;
|
|
815
|
-
}
|
|
816
|
-
case 3: {
|
|
817
|
-
if (tag !== 25) {
|
|
818
|
-
break;
|
|
819
|
-
}
|
|
820
|
-
message.creativeScore = reader.double();
|
|
821
|
-
continue;
|
|
822
|
-
}
|
|
823
|
-
case 4: {
|
|
824
|
-
if (tag !== 33) {
|
|
825
|
-
break;
|
|
826
|
-
}
|
|
827
|
-
message.factualScore = reader.double();
|
|
828
|
-
continue;
|
|
829
|
-
}
|
|
830
|
-
case 5: {
|
|
831
|
-
if (tag !== 41) {
|
|
832
|
-
break;
|
|
833
|
-
}
|
|
834
|
-
message.mathScore = reader.double();
|
|
835
|
-
continue;
|
|
836
|
-
}
|
|
837
|
-
case 6: {
|
|
838
|
-
if (tag !== 50) {
|
|
839
|
-
break;
|
|
840
|
-
}
|
|
841
|
-
const entry6 = exports.ModelPerformance_BenchmarkScoresEntry.decode(reader, reader.uint32());
|
|
842
|
-
if (entry6.value !== undefined) {
|
|
843
|
-
message.benchmarkScores[entry6.key] = entry6.value;
|
|
844
|
-
}
|
|
845
|
-
continue;
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
reader.skip(tag & 7);
|
|
852
|
-
}
|
|
853
|
-
return message;
|
|
854
|
-
},
|
|
855
|
-
fromJSON(object) {
|
|
856
|
-
return {
|
|
857
|
-
reasoningScore: isSet(object.reasoningScore)
|
|
858
|
-
? globalThis.Number(object.reasoningScore)
|
|
859
|
-
: isSet(object.reasoning_score)
|
|
860
|
-
? globalThis.Number(object.reasoning_score)
|
|
861
|
-
: 0,
|
|
862
|
-
codingScore: isSet(object.codingScore)
|
|
863
|
-
? globalThis.Number(object.codingScore)
|
|
864
|
-
: isSet(object.coding_score)
|
|
865
|
-
? globalThis.Number(object.coding_score)
|
|
866
|
-
: 0,
|
|
867
|
-
creativeScore: isSet(object.creativeScore)
|
|
868
|
-
? globalThis.Number(object.creativeScore)
|
|
869
|
-
: isSet(object.creative_score)
|
|
870
|
-
? globalThis.Number(object.creative_score)
|
|
871
|
-
: 0,
|
|
872
|
-
factualScore: isSet(object.factualScore)
|
|
873
|
-
? globalThis.Number(object.factualScore)
|
|
874
|
-
: isSet(object.factual_score)
|
|
875
|
-
? globalThis.Number(object.factual_score)
|
|
876
|
-
: 0,
|
|
877
|
-
mathScore: isSet(object.mathScore)
|
|
878
|
-
? globalThis.Number(object.mathScore)
|
|
879
|
-
: isSet(object.math_score)
|
|
880
|
-
? globalThis.Number(object.math_score)
|
|
881
|
-
: 0,
|
|
882
|
-
benchmarkScores: isObject(object.benchmarkScores)
|
|
883
|
-
? globalThis.Object.entries(object.benchmarkScores).reduce((acc, [key, value]) => {
|
|
884
|
-
acc[key] = globalThis.Number(value);
|
|
885
|
-
return acc;
|
|
886
|
-
}, {})
|
|
887
|
-
: isObject(object.benchmark_scores)
|
|
888
|
-
? globalThis.Object.entries(object.benchmark_scores).reduce((acc, [key, value]) => {
|
|
889
|
-
acc[key] = globalThis.Number(value);
|
|
890
|
-
return acc;
|
|
891
|
-
}, {})
|
|
892
|
-
: {},
|
|
893
|
-
};
|
|
894
|
-
},
|
|
895
|
-
toJSON(message) {
|
|
896
|
-
const obj = {};
|
|
897
|
-
if (message.reasoningScore !== 0) {
|
|
898
|
-
obj.reasoningScore = message.reasoningScore;
|
|
899
|
-
}
|
|
900
|
-
if (message.codingScore !== 0) {
|
|
901
|
-
obj.codingScore = message.codingScore;
|
|
902
|
-
}
|
|
903
|
-
if (message.creativeScore !== 0) {
|
|
904
|
-
obj.creativeScore = message.creativeScore;
|
|
905
|
-
}
|
|
906
|
-
if (message.factualScore !== 0) {
|
|
907
|
-
obj.factualScore = message.factualScore;
|
|
908
|
-
}
|
|
909
|
-
if (message.mathScore !== 0) {
|
|
910
|
-
obj.mathScore = message.mathScore;
|
|
911
|
-
}
|
|
912
|
-
if (message.benchmarkScores) {
|
|
913
|
-
const entries = globalThis.Object.entries(message.benchmarkScores);
|
|
914
|
-
if (entries.length > 0) {
|
|
915
|
-
obj.benchmarkScores = {};
|
|
916
|
-
entries.forEach(([k, v]) => {
|
|
917
|
-
obj.benchmarkScores[k] = v;
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
return obj;
|
|
922
|
-
},
|
|
923
|
-
create(base) {
|
|
924
|
-
return exports.ModelPerformance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
925
|
-
},
|
|
926
|
-
fromPartial(object) {
|
|
927
|
-
var _a, _b, _c, _d, _e, _f;
|
|
928
|
-
const message = createBaseModelPerformance();
|
|
929
|
-
message.reasoningScore = (_a = object.reasoningScore) !== null && _a !== void 0 ? _a : 0;
|
|
930
|
-
message.codingScore = (_b = object.codingScore) !== null && _b !== void 0 ? _b : 0;
|
|
931
|
-
message.creativeScore = (_c = object.creativeScore) !== null && _c !== void 0 ? _c : 0;
|
|
932
|
-
message.factualScore = (_d = object.factualScore) !== null && _d !== void 0 ? _d : 0;
|
|
933
|
-
message.mathScore = (_e = object.mathScore) !== null && _e !== void 0 ? _e : 0;
|
|
934
|
-
message.benchmarkScores = globalThis.Object.entries((_f = object.benchmarkScores) !== null && _f !== void 0 ? _f : {}).reduce((acc, [key, value]) => {
|
|
935
|
-
if (value !== undefined) {
|
|
936
|
-
acc[key] = globalThis.Number(value);
|
|
937
|
-
}
|
|
938
|
-
return acc;
|
|
939
|
-
}, {});
|
|
940
|
-
return message;
|
|
941
|
-
},
|
|
942
|
-
};
|
|
943
|
-
function createBaseModelPerformance_BenchmarkScoresEntry() {
|
|
944
|
-
return { key: "", value: 0 };
|
|
945
|
-
}
|
|
946
|
-
exports.ModelPerformance_BenchmarkScoresEntry = {
|
|
947
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
948
|
-
if (message.key !== "") {
|
|
949
|
-
writer.uint32(10).string(message.key);
|
|
950
|
-
}
|
|
951
|
-
if (message.value !== 0) {
|
|
952
|
-
writer.uint32(17).double(message.value);
|
|
953
|
-
}
|
|
954
|
-
return writer;
|
|
955
|
-
},
|
|
956
|
-
decode(input, length) {
|
|
957
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
958
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
959
|
-
const message = createBaseModelPerformance_BenchmarkScoresEntry();
|
|
960
|
-
while (reader.pos < end) {
|
|
961
|
-
const tag = reader.uint32();
|
|
962
|
-
switch (tag >>> 3) {
|
|
963
|
-
case 1: {
|
|
964
|
-
if (tag !== 10) {
|
|
965
|
-
break;
|
|
966
|
-
}
|
|
967
|
-
message.key = reader.string();
|
|
968
|
-
continue;
|
|
969
|
-
}
|
|
970
|
-
case 2: {
|
|
971
|
-
if (tag !== 17) {
|
|
972
|
-
break;
|
|
973
|
-
}
|
|
974
|
-
message.value = reader.double();
|
|
975
|
-
continue;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
979
|
-
break;
|
|
980
|
-
}
|
|
981
|
-
reader.skip(tag & 7);
|
|
982
|
-
}
|
|
983
|
-
return message;
|
|
984
|
-
},
|
|
985
|
-
fromJSON(object) {
|
|
986
|
-
return {
|
|
987
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
988
|
-
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
989
|
-
};
|
|
990
|
-
},
|
|
991
|
-
toJSON(message) {
|
|
992
|
-
const obj = {};
|
|
993
|
-
if (message.key !== "") {
|
|
994
|
-
obj.key = message.key;
|
|
995
|
-
}
|
|
996
|
-
if (message.value !== 0) {
|
|
997
|
-
obj.value = message.value;
|
|
998
|
-
}
|
|
999
|
-
return obj;
|
|
1000
|
-
},
|
|
1001
|
-
create(base) {
|
|
1002
|
-
return exports.ModelPerformance_BenchmarkScoresEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1003
|
-
},
|
|
1004
|
-
fromPartial(object) {
|
|
1005
|
-
var _a, _b;
|
|
1006
|
-
const message = createBaseModelPerformance_BenchmarkScoresEntry();
|
|
1007
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
1008
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
|
|
1009
|
-
return message;
|
|
1010
|
-
},
|
|
1011
|
-
};
|
|
1012
|
-
function createBaseTokenInfo() {
|
|
1013
|
-
return { contextWindow: 0, maxOutputTokens: 0, tokenizer: "", tokensPerSecond: 0 };
|
|
1014
|
-
}
|
|
1015
|
-
exports.TokenInfo = {
|
|
1016
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1017
|
-
if (message.contextWindow !== 0) {
|
|
1018
|
-
writer.uint32(8).int32(message.contextWindow);
|
|
1019
|
-
}
|
|
1020
|
-
if (message.maxOutputTokens !== 0) {
|
|
1021
|
-
writer.uint32(16).int32(message.maxOutputTokens);
|
|
1022
|
-
}
|
|
1023
|
-
if (message.tokenizer !== "") {
|
|
1024
|
-
writer.uint32(26).string(message.tokenizer);
|
|
1025
|
-
}
|
|
1026
|
-
if (message.tokensPerSecond !== 0) {
|
|
1027
|
-
writer.uint32(32).int32(message.tokensPerSecond);
|
|
1028
|
-
}
|
|
1029
|
-
return writer;
|
|
1030
|
-
},
|
|
1031
|
-
decode(input, length) {
|
|
1032
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1033
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1034
|
-
const message = createBaseTokenInfo();
|
|
1035
|
-
while (reader.pos < end) {
|
|
1036
|
-
const tag = reader.uint32();
|
|
1037
|
-
switch (tag >>> 3) {
|
|
1038
|
-
case 1: {
|
|
1039
|
-
if (tag !== 8) {
|
|
1040
|
-
break;
|
|
1041
|
-
}
|
|
1042
|
-
message.contextWindow = reader.int32();
|
|
1043
|
-
continue;
|
|
1044
|
-
}
|
|
1045
|
-
case 2: {
|
|
1046
|
-
if (tag !== 16) {
|
|
1047
|
-
break;
|
|
1048
|
-
}
|
|
1049
|
-
message.maxOutputTokens = reader.int32();
|
|
1050
|
-
continue;
|
|
1051
|
-
}
|
|
1052
|
-
case 3: {
|
|
1053
|
-
if (tag !== 26) {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
message.tokenizer = reader.string();
|
|
1057
|
-
continue;
|
|
1058
|
-
}
|
|
1059
|
-
case 4: {
|
|
1060
|
-
if (tag !== 32) {
|
|
1061
|
-
break;
|
|
1062
|
-
}
|
|
1063
|
-
message.tokensPerSecond = reader.int32();
|
|
1064
|
-
continue;
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
reader.skip(tag & 7);
|
|
1071
|
-
}
|
|
1072
|
-
return message;
|
|
1073
|
-
},
|
|
1074
|
-
fromJSON(object) {
|
|
1075
|
-
return {
|
|
1076
|
-
contextWindow: isSet(object.contextWindow)
|
|
1077
|
-
? globalThis.Number(object.contextWindow)
|
|
1078
|
-
: isSet(object.context_window)
|
|
1079
|
-
? globalThis.Number(object.context_window)
|
|
1080
|
-
: 0,
|
|
1081
|
-
maxOutputTokens: isSet(object.maxOutputTokens)
|
|
1082
|
-
? globalThis.Number(object.maxOutputTokens)
|
|
1083
|
-
: isSet(object.max_output_tokens)
|
|
1084
|
-
? globalThis.Number(object.max_output_tokens)
|
|
1085
|
-
: 0,
|
|
1086
|
-
tokenizer: isSet(object.tokenizer) ? globalThis.String(object.tokenizer) : "",
|
|
1087
|
-
tokensPerSecond: isSet(object.tokensPerSecond)
|
|
1088
|
-
? globalThis.Number(object.tokensPerSecond)
|
|
1089
|
-
: isSet(object.tokens_per_second)
|
|
1090
|
-
? globalThis.Number(object.tokens_per_second)
|
|
1091
|
-
: 0,
|
|
1092
|
-
};
|
|
1093
|
-
},
|
|
1094
|
-
toJSON(message) {
|
|
1095
|
-
const obj = {};
|
|
1096
|
-
if (message.contextWindow !== 0) {
|
|
1097
|
-
obj.contextWindow = Math.round(message.contextWindow);
|
|
1098
|
-
}
|
|
1099
|
-
if (message.maxOutputTokens !== 0) {
|
|
1100
|
-
obj.maxOutputTokens = Math.round(message.maxOutputTokens);
|
|
1101
|
-
}
|
|
1102
|
-
if (message.tokenizer !== "") {
|
|
1103
|
-
obj.tokenizer = message.tokenizer;
|
|
1104
|
-
}
|
|
1105
|
-
if (message.tokensPerSecond !== 0) {
|
|
1106
|
-
obj.tokensPerSecond = Math.round(message.tokensPerSecond);
|
|
1107
|
-
}
|
|
1108
|
-
return obj;
|
|
1109
|
-
},
|
|
1110
|
-
create(base) {
|
|
1111
|
-
return exports.TokenInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1112
|
-
},
|
|
1113
|
-
fromPartial(object) {
|
|
1114
|
-
var _a, _b, _c, _d;
|
|
1115
|
-
const message = createBaseTokenInfo();
|
|
1116
|
-
message.contextWindow = (_a = object.contextWindow) !== null && _a !== void 0 ? _a : 0;
|
|
1117
|
-
message.maxOutputTokens = (_b = object.maxOutputTokens) !== null && _b !== void 0 ? _b : 0;
|
|
1118
|
-
message.tokenizer = (_c = object.tokenizer) !== null && _c !== void 0 ? _c : "";
|
|
1119
|
-
message.tokensPerSecond = (_d = object.tokensPerSecond) !== null && _d !== void 0 ? _d : 0;
|
|
1120
|
-
return message;
|
|
1121
|
-
},
|
|
1122
|
-
};
|
|
1123
|
-
function createBaseConfiguration() {
|
|
1124
|
-
return { temperatureMin: 0, temperatureMax: 0, temperatureDefault: 0, topPMin: 0, topPMax: 0 };
|
|
1125
|
-
}
|
|
1126
|
-
exports.Configuration = {
|
|
1127
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1128
|
-
if (message.temperatureMin !== 0) {
|
|
1129
|
-
writer.uint32(9).double(message.temperatureMin);
|
|
1130
|
-
}
|
|
1131
|
-
if (message.temperatureMax !== 0) {
|
|
1132
|
-
writer.uint32(17).double(message.temperatureMax);
|
|
1133
|
-
}
|
|
1134
|
-
if (message.temperatureDefault !== 0) {
|
|
1135
|
-
writer.uint32(25).double(message.temperatureDefault);
|
|
1136
|
-
}
|
|
1137
|
-
if (message.topPMin !== 0) {
|
|
1138
|
-
writer.uint32(33).double(message.topPMin);
|
|
1139
|
-
}
|
|
1140
|
-
if (message.topPMax !== 0) {
|
|
1141
|
-
writer.uint32(41).double(message.topPMax);
|
|
1142
|
-
}
|
|
1143
|
-
return writer;
|
|
1144
|
-
},
|
|
1145
|
-
decode(input, length) {
|
|
1146
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1147
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1148
|
-
const message = createBaseConfiguration();
|
|
1149
|
-
while (reader.pos < end) {
|
|
1150
|
-
const tag = reader.uint32();
|
|
1151
|
-
switch (tag >>> 3) {
|
|
1152
|
-
case 1: {
|
|
1153
|
-
if (tag !== 9) {
|
|
1154
|
-
break;
|
|
1155
|
-
}
|
|
1156
|
-
message.temperatureMin = reader.double();
|
|
1157
|
-
continue;
|
|
1158
|
-
}
|
|
1159
|
-
case 2: {
|
|
1160
|
-
if (tag !== 17) {
|
|
1161
|
-
break;
|
|
1162
|
-
}
|
|
1163
|
-
message.temperatureMax = reader.double();
|
|
1164
|
-
continue;
|
|
1165
|
-
}
|
|
1166
|
-
case 3: {
|
|
1167
|
-
if (tag !== 25) {
|
|
1168
|
-
break;
|
|
1169
|
-
}
|
|
1170
|
-
message.temperatureDefault = reader.double();
|
|
1171
|
-
continue;
|
|
1172
|
-
}
|
|
1173
|
-
case 4: {
|
|
1174
|
-
if (tag !== 33) {
|
|
1175
|
-
break;
|
|
1176
|
-
}
|
|
1177
|
-
message.topPMin = reader.double();
|
|
1178
|
-
continue;
|
|
1179
|
-
}
|
|
1180
|
-
case 5: {
|
|
1181
|
-
if (tag !== 41) {
|
|
1182
|
-
break;
|
|
1183
|
-
}
|
|
1184
|
-
message.topPMax = reader.double();
|
|
1185
|
-
continue;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1189
|
-
break;
|
|
1190
|
-
}
|
|
1191
|
-
reader.skip(tag & 7);
|
|
1192
|
-
}
|
|
1193
|
-
return message;
|
|
1194
|
-
},
|
|
1195
|
-
fromJSON(object) {
|
|
1196
|
-
return {
|
|
1197
|
-
temperatureMin: isSet(object.temperatureMin)
|
|
1198
|
-
? globalThis.Number(object.temperatureMin)
|
|
1199
|
-
: isSet(object.temperature_min)
|
|
1200
|
-
? globalThis.Number(object.temperature_min)
|
|
1201
|
-
: 0,
|
|
1202
|
-
temperatureMax: isSet(object.temperatureMax)
|
|
1203
|
-
? globalThis.Number(object.temperatureMax)
|
|
1204
|
-
: isSet(object.temperature_max)
|
|
1205
|
-
? globalThis.Number(object.temperature_max)
|
|
1206
|
-
: 0,
|
|
1207
|
-
temperatureDefault: isSet(object.temperatureDefault)
|
|
1208
|
-
? globalThis.Number(object.temperatureDefault)
|
|
1209
|
-
: isSet(object.temperature_default)
|
|
1210
|
-
? globalThis.Number(object.temperature_default)
|
|
1211
|
-
: 0,
|
|
1212
|
-
topPMin: isSet(object.topPMin)
|
|
1213
|
-
? globalThis.Number(object.topPMin)
|
|
1214
|
-
: isSet(object.top_p_min)
|
|
1215
|
-
? globalThis.Number(object.top_p_min)
|
|
1216
|
-
: 0,
|
|
1217
|
-
topPMax: isSet(object.topPMax)
|
|
1218
|
-
? globalThis.Number(object.topPMax)
|
|
1219
|
-
: isSet(object.top_p_max)
|
|
1220
|
-
? globalThis.Number(object.top_p_max)
|
|
1221
|
-
: 0,
|
|
1222
|
-
};
|
|
1223
|
-
},
|
|
1224
|
-
toJSON(message) {
|
|
1225
|
-
const obj = {};
|
|
1226
|
-
if (message.temperatureMin !== 0) {
|
|
1227
|
-
obj.temperatureMin = message.temperatureMin;
|
|
1228
|
-
}
|
|
1229
|
-
if (message.temperatureMax !== 0) {
|
|
1230
|
-
obj.temperatureMax = message.temperatureMax;
|
|
1231
|
-
}
|
|
1232
|
-
if (message.temperatureDefault !== 0) {
|
|
1233
|
-
obj.temperatureDefault = message.temperatureDefault;
|
|
1234
|
-
}
|
|
1235
|
-
if (message.topPMin !== 0) {
|
|
1236
|
-
obj.topPMin = message.topPMin;
|
|
1237
|
-
}
|
|
1238
|
-
if (message.topPMax !== 0) {
|
|
1239
|
-
obj.topPMax = message.topPMax;
|
|
1240
|
-
}
|
|
1241
|
-
return obj;
|
|
1242
|
-
},
|
|
1243
|
-
create(base) {
|
|
1244
|
-
return exports.Configuration.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1245
|
-
},
|
|
1246
|
-
fromPartial(object) {
|
|
1247
|
-
var _a, _b, _c, _d, _e;
|
|
1248
|
-
const message = createBaseConfiguration();
|
|
1249
|
-
message.temperatureMin = (_a = object.temperatureMin) !== null && _a !== void 0 ? _a : 0;
|
|
1250
|
-
message.temperatureMax = (_b = object.temperatureMax) !== null && _b !== void 0 ? _b : 0;
|
|
1251
|
-
message.temperatureDefault = (_c = object.temperatureDefault) !== null && _c !== void 0 ? _c : 0;
|
|
1252
|
-
message.topPMin = (_d = object.topPMin) !== null && _d !== void 0 ? _d : 0;
|
|
1253
|
-
message.topPMax = (_e = object.topPMax) !== null && _e !== void 0 ? _e : 0;
|
|
1254
|
-
return message;
|
|
1255
|
-
},
|
|
1256
|
-
};
|
|
1257
|
-
function createBaseAPIDetails() {
|
|
1258
|
-
return { endpoint: "", version: "", rateLimitRpm: 0, rateLimitTpm: 0 };
|
|
1259
|
-
}
|
|
1260
|
-
exports.APIDetails = {
|
|
1261
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1262
|
-
if (message.endpoint !== "") {
|
|
1263
|
-
writer.uint32(10).string(message.endpoint);
|
|
1264
|
-
}
|
|
1265
|
-
if (message.version !== "") {
|
|
1266
|
-
writer.uint32(18).string(message.version);
|
|
1267
|
-
}
|
|
1268
|
-
if (message.rateLimitRpm !== 0) {
|
|
1269
|
-
writer.uint32(24).int32(message.rateLimitRpm);
|
|
1270
|
-
}
|
|
1271
|
-
if (message.rateLimitTpm !== 0) {
|
|
1272
|
-
writer.uint32(32).int32(message.rateLimitTpm);
|
|
1273
|
-
}
|
|
1274
|
-
return writer;
|
|
1275
|
-
},
|
|
1276
|
-
decode(input, length) {
|
|
1277
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1278
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1279
|
-
const message = createBaseAPIDetails();
|
|
1280
|
-
while (reader.pos < end) {
|
|
1281
|
-
const tag = reader.uint32();
|
|
1282
|
-
switch (tag >>> 3) {
|
|
1283
|
-
case 1: {
|
|
1284
|
-
if (tag !== 10) {
|
|
1285
|
-
break;
|
|
1286
|
-
}
|
|
1287
|
-
message.endpoint = reader.string();
|
|
1288
|
-
continue;
|
|
1289
|
-
}
|
|
1290
|
-
case 2: {
|
|
1291
|
-
if (tag !== 18) {
|
|
1292
|
-
break;
|
|
1293
|
-
}
|
|
1294
|
-
message.version = reader.string();
|
|
1295
|
-
continue;
|
|
1296
|
-
}
|
|
1297
|
-
case 3: {
|
|
1298
|
-
if (tag !== 24) {
|
|
1299
|
-
break;
|
|
1300
|
-
}
|
|
1301
|
-
message.rateLimitRpm = reader.int32();
|
|
1302
|
-
continue;
|
|
1303
|
-
}
|
|
1304
|
-
case 4: {
|
|
1305
|
-
if (tag !== 32) {
|
|
1306
|
-
break;
|
|
1307
|
-
}
|
|
1308
|
-
message.rateLimitTpm = reader.int32();
|
|
1309
|
-
continue;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1313
|
-
break;
|
|
1314
|
-
}
|
|
1315
|
-
reader.skip(tag & 7);
|
|
1316
|
-
}
|
|
1317
|
-
return message;
|
|
1318
|
-
},
|
|
1319
|
-
fromJSON(object) {
|
|
1320
|
-
return {
|
|
1321
|
-
endpoint: isSet(object.endpoint) ? globalThis.String(object.endpoint) : "",
|
|
1322
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
1323
|
-
rateLimitRpm: isSet(object.rateLimitRpm)
|
|
1324
|
-
? globalThis.Number(object.rateLimitRpm)
|
|
1325
|
-
: isSet(object.rate_limit_rpm)
|
|
1326
|
-
? globalThis.Number(object.rate_limit_rpm)
|
|
1327
|
-
: 0,
|
|
1328
|
-
rateLimitTpm: isSet(object.rateLimitTpm)
|
|
1329
|
-
? globalThis.Number(object.rateLimitTpm)
|
|
1330
|
-
: isSet(object.rate_limit_tpm)
|
|
1331
|
-
? globalThis.Number(object.rate_limit_tpm)
|
|
1332
|
-
: 0,
|
|
1333
|
-
};
|
|
1334
|
-
},
|
|
1335
|
-
toJSON(message) {
|
|
1336
|
-
const obj = {};
|
|
1337
|
-
if (message.endpoint !== "") {
|
|
1338
|
-
obj.endpoint = message.endpoint;
|
|
1339
|
-
}
|
|
1340
|
-
if (message.version !== "") {
|
|
1341
|
-
obj.version = message.version;
|
|
1342
|
-
}
|
|
1343
|
-
if (message.rateLimitRpm !== 0) {
|
|
1344
|
-
obj.rateLimitRpm = Math.round(message.rateLimitRpm);
|
|
1345
|
-
}
|
|
1346
|
-
if (message.rateLimitTpm !== 0) {
|
|
1347
|
-
obj.rateLimitTpm = Math.round(message.rateLimitTpm);
|
|
1348
|
-
}
|
|
1349
|
-
return obj;
|
|
1350
|
-
},
|
|
1351
|
-
create(base) {
|
|
1352
|
-
return exports.APIDetails.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1353
|
-
},
|
|
1354
|
-
fromPartial(object) {
|
|
1355
|
-
var _a, _b, _c, _d;
|
|
1356
|
-
const message = createBaseAPIDetails();
|
|
1357
|
-
message.endpoint = (_a = object.endpoint) !== null && _a !== void 0 ? _a : "";
|
|
1358
|
-
message.version = (_b = object.version) !== null && _b !== void 0 ? _b : "";
|
|
1359
|
-
message.rateLimitRpm = (_c = object.rateLimitRpm) !== null && _c !== void 0 ? _c : 0;
|
|
1360
|
-
message.rateLimitTpm = (_d = object.rateLimitTpm) !== null && _d !== void 0 ? _d : 0;
|
|
1361
|
-
return message;
|
|
1362
|
-
},
|
|
1363
|
-
};
|
|
1364
|
-
function createBaseAvailability() {
|
|
1365
|
-
return { regions: [], platforms: [] };
|
|
1366
|
-
}
|
|
1367
|
-
exports.Availability = {
|
|
1368
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1369
|
-
for (const v of message.regions) {
|
|
1370
|
-
writer.uint32(10).string(v);
|
|
1371
|
-
}
|
|
1372
|
-
for (const v of message.platforms) {
|
|
1373
|
-
writer.uint32(18).string(v);
|
|
1374
|
-
}
|
|
1375
|
-
return writer;
|
|
1376
|
-
},
|
|
1377
|
-
decode(input, length) {
|
|
1378
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1379
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1380
|
-
const message = createBaseAvailability();
|
|
1381
|
-
while (reader.pos < end) {
|
|
1382
|
-
const tag = reader.uint32();
|
|
1383
|
-
switch (tag >>> 3) {
|
|
1384
|
-
case 1: {
|
|
1385
|
-
if (tag !== 10) {
|
|
1386
|
-
break;
|
|
1387
|
-
}
|
|
1388
|
-
message.regions.push(reader.string());
|
|
1389
|
-
continue;
|
|
1390
|
-
}
|
|
1391
|
-
case 2: {
|
|
1392
|
-
if (tag !== 18) {
|
|
1393
|
-
break;
|
|
1394
|
-
}
|
|
1395
|
-
message.platforms.push(reader.string());
|
|
1396
|
-
continue;
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1400
|
-
break;
|
|
1401
|
-
}
|
|
1402
|
-
reader.skip(tag & 7);
|
|
1403
|
-
}
|
|
1404
|
-
return message;
|
|
1405
|
-
},
|
|
1406
|
-
fromJSON(object) {
|
|
1407
|
-
return {
|
|
1408
|
-
regions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
|
|
1409
|
-
platforms: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.platforms)
|
|
1410
|
-
? object.platforms.map((e) => globalThis.String(e))
|
|
1411
|
-
: [],
|
|
1412
|
-
};
|
|
1413
|
-
},
|
|
1414
|
-
toJSON(message) {
|
|
1415
|
-
var _a, _b;
|
|
1416
|
-
const obj = {};
|
|
1417
|
-
if ((_a = message.regions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1418
|
-
obj.regions = message.regions;
|
|
1419
|
-
}
|
|
1420
|
-
if ((_b = message.platforms) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1421
|
-
obj.platforms = message.platforms;
|
|
1422
|
-
}
|
|
1423
|
-
return obj;
|
|
1424
|
-
},
|
|
1425
|
-
create(base) {
|
|
1426
|
-
return exports.Availability.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1427
|
-
},
|
|
1428
|
-
fromPartial(object) {
|
|
1429
|
-
var _a, _b;
|
|
1430
|
-
const message = createBaseAvailability();
|
|
1431
|
-
message.regions = ((_a = object.regions) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
1432
|
-
message.platforms = ((_b = object.platforms) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1433
|
-
return message;
|
|
1434
|
-
},
|
|
1435
|
-
};
|
|
1436
|
-
function toTimestamp(date) {
|
|
1437
|
-
const seconds = Math.trunc(date.getTime() / 1000);
|
|
1438
|
-
const nanos = (date.getTime() % 1000) * 1000000;
|
|
1439
|
-
return { seconds, nanos };
|
|
1440
|
-
}
|
|
1441
|
-
function fromTimestamp(t) {
|
|
1442
|
-
let millis = (t.seconds || 0) * 1000;
|
|
1443
|
-
millis += (t.nanos || 0) / 1000000;
|
|
1444
|
-
return new globalThis.Date(millis);
|
|
1445
|
-
}
|
|
1446
|
-
function fromJsonTimestamp(o) {
|
|
1447
|
-
if (o instanceof globalThis.Date) {
|
|
1448
|
-
return o;
|
|
1449
|
-
}
|
|
1450
|
-
else if (typeof o === "string") {
|
|
1451
|
-
return new globalThis.Date(o);
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
function longToNumber(int64) {
|
|
1458
|
-
const num = globalThis.Number(int64.toString());
|
|
1459
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1460
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1461
|
-
}
|
|
1462
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1463
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1464
|
-
}
|
|
1465
|
-
return num;
|
|
1466
|
-
}
|
|
1467
|
-
function isObject(value) {
|
|
1468
|
-
return typeof value === "object" && value !== null;
|
|
1469
|
-
}
|
|
1470
|
-
function isSet(value) {
|
|
1471
|
-
return value !== null && value !== undefined;
|
|
1472
|
-
}
|