weave-typescript 0.5.1 → 0.8.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/weaveapi/llmx/v1/architecture.pb.d.ts +377 -0
- package/dist/weaveapi/llmx/v1/architecture.pb.js +2756 -0
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +320 -0
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +2883 -0
- package/dist/weaveapi/{modex → llmx}/v1/model.pb.d.ts +85 -31
- package/dist/weaveapi/{modex → llmx}/v1/model.pb.js +113 -308
- package/dist/weaveapi/{modex → llmx}/v1/provider.pb.d.ts +1 -3
- package/dist/weaveapi/{modex → llmx}/v1/provider.pb.js +3 -57
- package/dist/weaveapi/{modex → llmx}/v1/service.pb.d.ts +20 -20
- package/dist/weaveapi/{modex → llmx}/v1/service.pb.js +17 -17
- package/dist/weavesql/llmxdb/capabilities_sql.d.ts +151 -0
- package/dist/weavesql/llmxdb/capabilities_sql.js +241 -0
- package/dist/weavesql/llmxdb/changes_sql.d.ts +81 -0
- package/dist/weavesql/llmxdb/changes_sql.js +118 -0
- package/dist/weavesql/llmxdb/models_sql.d.ts +198 -0
- package/dist/weavesql/llmxdb/models_sql.js +244 -0
- package/dist/weavesql/llmxdb/providers_sql.d.ts +122 -0
- package/dist/weavesql/llmxdb/providers_sql.js +179 -0
- package/dist/weavesql/llmxdb/scraper_runs_sql.d.ts +83 -0
- package/dist/weavesql/llmxdb/scraper_runs_sql.js +137 -0
- package/dist/weavesql/llmxdb/search_sql.d.ts +272 -0
- package/dist/weavesql/llmxdb/search_sql.js +348 -0
- package/dist/weavesql/weavedb/dataset_sql.d.ts +17 -0
- package/dist/weavesql/weavedb/dataset_sql.js +21 -0
- package/dist/weavesql/weavedb/relationships_sql.d.ts +16 -0
- package/dist/weavesql/weavedb/relationships_sql.js +32 -0
- package/dist/weavesql/weavedb/storage_sql.d.ts +33 -0
- package/dist/weavesql/weavedb/storage_sql.js +54 -0
- package/dist/weavesql/weavedb/synthesizer_sql.d.ts +28 -0
- package/dist/weavesql/weavedb/synthesizer_sql.js +42 -0
- package/package.json +4 -1
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.6.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: weaveapi/
|
|
6
|
+
// source: weaveapi/llmx/v1/model.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Availability = exports.APIDetails = exports.Configuration = exports.Pricing = exports.TokenInfo = exports.ModelPerformance_BenchmarkScoresEntry = exports.ModelPerformance = exports.ModelClassification = exports.
|
|
8
|
+
exports.Availability = exports.APIDetails = exports.Configuration = exports.Pricing = exports.TokenInfo = exports.ModelPerformance_BenchmarkScoresEntry = exports.ModelPerformance = exports.ModelClassification = exports.Model = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
12
|
-
|
|
12
|
+
const architecture_pb_1 = require("./architecture.pb");
|
|
13
|
+
const capabilities_pb_1 = require("./capabilities.pb");
|
|
14
|
+
exports.protobufPackage = "weaveapi.llmx.v1";
|
|
13
15
|
function createBaseModel() {
|
|
14
16
|
return {
|
|
15
17
|
id: "",
|
|
@@ -25,7 +27,7 @@ function createBaseModel() {
|
|
|
25
27
|
releaseDate: undefined,
|
|
26
28
|
trainingDataCutoff: undefined,
|
|
27
29
|
deprecationDate: undefined,
|
|
28
|
-
capabilities:
|
|
30
|
+
capabilities: [],
|
|
29
31
|
classification: undefined,
|
|
30
32
|
performance: undefined,
|
|
31
33
|
tokens: undefined,
|
|
@@ -33,13 +35,16 @@ function createBaseModel() {
|
|
|
33
35
|
configuration: undefined,
|
|
34
36
|
apiDetails: undefined,
|
|
35
37
|
availability: undefined,
|
|
38
|
+
architecture: undefined,
|
|
39
|
+
training: undefined,
|
|
40
|
+
safety: undefined,
|
|
41
|
+
licensing: undefined,
|
|
42
|
+
technicalSpecs: undefined,
|
|
36
43
|
lastScrapedAt: undefined,
|
|
37
44
|
dataSources: [],
|
|
38
45
|
isActive: false,
|
|
39
46
|
isDeprecated: false,
|
|
40
47
|
replacementModelId: "",
|
|
41
|
-
createdAt: undefined,
|
|
42
|
-
updatedAt: undefined,
|
|
43
48
|
};
|
|
44
49
|
}
|
|
45
50
|
exports.Model = {
|
|
@@ -83,8 +88,8 @@ exports.Model = {
|
|
|
83
88
|
if (message.deprecationDate !== undefined) {
|
|
84
89
|
timestamp_pb_1.Timestamp.encode(toTimestamp(message.deprecationDate), writer.uint32(106).fork()).join();
|
|
85
90
|
}
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
for (const v of message.capabilities) {
|
|
92
|
+
capabilities_pb_1.Capability.encode(v, writer.uint32(114).fork()).join();
|
|
88
93
|
}
|
|
89
94
|
if (message.classification !== undefined) {
|
|
90
95
|
exports.ModelClassification.encode(message.classification, writer.uint32(122).fork()).join();
|
|
@@ -107,26 +112,35 @@ exports.Model = {
|
|
|
107
112
|
if (message.availability !== undefined) {
|
|
108
113
|
exports.Availability.encode(message.availability, writer.uint32(170).fork()).join();
|
|
109
114
|
}
|
|
115
|
+
if (message.architecture !== undefined) {
|
|
116
|
+
architecture_pb_1.Architecture.encode(message.architecture, writer.uint32(178).fork()).join();
|
|
117
|
+
}
|
|
118
|
+
if (message.training !== undefined) {
|
|
119
|
+
architecture_pb_1.Training.encode(message.training, writer.uint32(186).fork()).join();
|
|
120
|
+
}
|
|
121
|
+
if (message.safety !== undefined) {
|
|
122
|
+
architecture_pb_1.Safety.encode(message.safety, writer.uint32(194).fork()).join();
|
|
123
|
+
}
|
|
124
|
+
if (message.licensing !== undefined) {
|
|
125
|
+
architecture_pb_1.Licensing.encode(message.licensing, writer.uint32(202).fork()).join();
|
|
126
|
+
}
|
|
127
|
+
if (message.technicalSpecs !== undefined) {
|
|
128
|
+
architecture_pb_1.TechnicalSpecs.encode(message.technicalSpecs, writer.uint32(210).fork()).join();
|
|
129
|
+
}
|
|
110
130
|
if (message.lastScrapedAt !== undefined) {
|
|
111
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastScrapedAt), writer.uint32(
|
|
131
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastScrapedAt), writer.uint32(218).fork()).join();
|
|
112
132
|
}
|
|
113
133
|
for (const v of message.dataSources) {
|
|
114
|
-
writer.uint32(
|
|
134
|
+
writer.uint32(226).string(v);
|
|
115
135
|
}
|
|
116
136
|
if (message.isActive !== false) {
|
|
117
|
-
writer.uint32(
|
|
137
|
+
writer.uint32(232).bool(message.isActive);
|
|
118
138
|
}
|
|
119
139
|
if (message.isDeprecated !== false) {
|
|
120
|
-
writer.uint32(
|
|
140
|
+
writer.uint32(240).bool(message.isDeprecated);
|
|
121
141
|
}
|
|
122
142
|
if (message.replacementModelId !== "") {
|
|
123
|
-
writer.uint32(
|
|
124
|
-
}
|
|
125
|
-
if (message.createdAt !== undefined) {
|
|
126
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(218).fork()).join();
|
|
127
|
-
}
|
|
128
|
-
if (message.updatedAt !== undefined) {
|
|
129
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(226).fork()).join();
|
|
143
|
+
writer.uint32(250).string(message.replacementModelId);
|
|
130
144
|
}
|
|
131
145
|
return writer;
|
|
132
146
|
},
|
|
@@ -232,7 +246,7 @@ exports.Model = {
|
|
|
232
246
|
if (tag !== 114) {
|
|
233
247
|
break;
|
|
234
248
|
}
|
|
235
|
-
message.capabilities
|
|
249
|
+
message.capabilities.push(capabilities_pb_1.Capability.decode(reader, reader.uint32()));
|
|
236
250
|
continue;
|
|
237
251
|
}
|
|
238
252
|
case 15: {
|
|
@@ -288,49 +302,70 @@ exports.Model = {
|
|
|
288
302
|
if (tag !== 178) {
|
|
289
303
|
break;
|
|
290
304
|
}
|
|
291
|
-
message.
|
|
305
|
+
message.architecture = architecture_pb_1.Architecture.decode(reader, reader.uint32());
|
|
292
306
|
continue;
|
|
293
307
|
}
|
|
294
308
|
case 23: {
|
|
295
309
|
if (tag !== 186) {
|
|
296
310
|
break;
|
|
297
311
|
}
|
|
298
|
-
message.
|
|
312
|
+
message.training = architecture_pb_1.Training.decode(reader, reader.uint32());
|
|
299
313
|
continue;
|
|
300
314
|
}
|
|
301
315
|
case 24: {
|
|
302
|
-
if (tag !==
|
|
316
|
+
if (tag !== 194) {
|
|
303
317
|
break;
|
|
304
318
|
}
|
|
305
|
-
message.
|
|
319
|
+
message.safety = architecture_pb_1.Safety.decode(reader, reader.uint32());
|
|
306
320
|
continue;
|
|
307
321
|
}
|
|
308
322
|
case 25: {
|
|
309
|
-
if (tag !==
|
|
323
|
+
if (tag !== 202) {
|
|
310
324
|
break;
|
|
311
325
|
}
|
|
312
|
-
message.
|
|
326
|
+
message.licensing = architecture_pb_1.Licensing.decode(reader, reader.uint32());
|
|
313
327
|
continue;
|
|
314
328
|
}
|
|
315
329
|
case 26: {
|
|
316
330
|
if (tag !== 210) {
|
|
317
331
|
break;
|
|
318
332
|
}
|
|
319
|
-
message.
|
|
333
|
+
message.technicalSpecs = architecture_pb_1.TechnicalSpecs.decode(reader, reader.uint32());
|
|
320
334
|
continue;
|
|
321
335
|
}
|
|
322
336
|
case 27: {
|
|
323
337
|
if (tag !== 218) {
|
|
324
338
|
break;
|
|
325
339
|
}
|
|
326
|
-
message.
|
|
340
|
+
message.lastScrapedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
327
341
|
continue;
|
|
328
342
|
}
|
|
329
343
|
case 28: {
|
|
330
344
|
if (tag !== 226) {
|
|
331
345
|
break;
|
|
332
346
|
}
|
|
333
|
-
message.
|
|
347
|
+
message.dataSources.push(reader.string());
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
case 29: {
|
|
351
|
+
if (tag !== 232) {
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
message.isActive = reader.bool();
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
case 30: {
|
|
358
|
+
if (tag !== 240) {
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
message.isDeprecated = reader.bool();
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
case 31: {
|
|
365
|
+
if (tag !== 250) {
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
message.replacementModelId = reader.string();
|
|
334
369
|
continue;
|
|
335
370
|
}
|
|
336
371
|
}
|
|
@@ -356,7 +391,9 @@ exports.Model = {
|
|
|
356
391
|
releaseDate: isSet(object.releaseDate) ? fromJsonTimestamp(object.releaseDate) : undefined,
|
|
357
392
|
trainingDataCutoff: isSet(object.trainingDataCutoff) ? fromJsonTimestamp(object.trainingDataCutoff) : undefined,
|
|
358
393
|
deprecationDate: isSet(object.deprecationDate) ? fromJsonTimestamp(object.deprecationDate) : undefined,
|
|
359
|
-
capabilities:
|
|
394
|
+
capabilities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.capabilities)
|
|
395
|
+
? object.capabilities.map((e) => capabilities_pb_1.Capability.fromJSON(e))
|
|
396
|
+
: [],
|
|
360
397
|
classification: isSet(object.classification) ? exports.ModelClassification.fromJSON(object.classification) : undefined,
|
|
361
398
|
performance: isSet(object.performance) ? exports.ModelPerformance.fromJSON(object.performance) : undefined,
|
|
362
399
|
tokens: isSet(object.tokens) ? exports.TokenInfo.fromJSON(object.tokens) : undefined,
|
|
@@ -364,6 +401,11 @@ exports.Model = {
|
|
|
364
401
|
configuration: isSet(object.configuration) ? exports.Configuration.fromJSON(object.configuration) : undefined,
|
|
365
402
|
apiDetails: isSet(object.apiDetails) ? exports.APIDetails.fromJSON(object.apiDetails) : undefined,
|
|
366
403
|
availability: isSet(object.availability) ? exports.Availability.fromJSON(object.availability) : undefined,
|
|
404
|
+
architecture: isSet(object.architecture) ? architecture_pb_1.Architecture.fromJSON(object.architecture) : undefined,
|
|
405
|
+
training: isSet(object.training) ? architecture_pb_1.Training.fromJSON(object.training) : undefined,
|
|
406
|
+
safety: isSet(object.safety) ? architecture_pb_1.Safety.fromJSON(object.safety) : undefined,
|
|
407
|
+
licensing: isSet(object.licensing) ? architecture_pb_1.Licensing.fromJSON(object.licensing) : undefined,
|
|
408
|
+
technicalSpecs: isSet(object.technicalSpecs) ? architecture_pb_1.TechnicalSpecs.fromJSON(object.technicalSpecs) : undefined,
|
|
367
409
|
lastScrapedAt: isSet(object.lastScrapedAt) ? fromJsonTimestamp(object.lastScrapedAt) : undefined,
|
|
368
410
|
dataSources: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.dataSources)
|
|
369
411
|
? object.dataSources.map((e) => globalThis.String(e))
|
|
@@ -371,12 +413,10 @@ exports.Model = {
|
|
|
371
413
|
isActive: isSet(object.isActive) ? globalThis.Boolean(object.isActive) : false,
|
|
372
414
|
isDeprecated: isSet(object.isDeprecated) ? globalThis.Boolean(object.isDeprecated) : false,
|
|
373
415
|
replacementModelId: isSet(object.replacementModelId) ? globalThis.String(object.replacementModelId) : "",
|
|
374
|
-
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
375
|
-
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
376
416
|
};
|
|
377
417
|
},
|
|
378
418
|
toJSON(message) {
|
|
379
|
-
var _a;
|
|
419
|
+
var _a, _b;
|
|
380
420
|
const obj = {};
|
|
381
421
|
if (message.id !== "") {
|
|
382
422
|
obj.id = message.id;
|
|
@@ -417,8 +457,8 @@ exports.Model = {
|
|
|
417
457
|
if (message.deprecationDate !== undefined) {
|
|
418
458
|
obj.deprecationDate = message.deprecationDate.toISOString();
|
|
419
459
|
}
|
|
420
|
-
if (message.capabilities
|
|
421
|
-
obj.capabilities =
|
|
460
|
+
if ((_a = message.capabilities) === null || _a === void 0 ? void 0 : _a.length) {
|
|
461
|
+
obj.capabilities = message.capabilities.map((e) => capabilities_pb_1.Capability.toJSON(e));
|
|
422
462
|
}
|
|
423
463
|
if (message.classification !== undefined) {
|
|
424
464
|
obj.classification = exports.ModelClassification.toJSON(message.classification);
|
|
@@ -441,10 +481,25 @@ exports.Model = {
|
|
|
441
481
|
if (message.availability !== undefined) {
|
|
442
482
|
obj.availability = exports.Availability.toJSON(message.availability);
|
|
443
483
|
}
|
|
484
|
+
if (message.architecture !== undefined) {
|
|
485
|
+
obj.architecture = architecture_pb_1.Architecture.toJSON(message.architecture);
|
|
486
|
+
}
|
|
487
|
+
if (message.training !== undefined) {
|
|
488
|
+
obj.training = architecture_pb_1.Training.toJSON(message.training);
|
|
489
|
+
}
|
|
490
|
+
if (message.safety !== undefined) {
|
|
491
|
+
obj.safety = architecture_pb_1.Safety.toJSON(message.safety);
|
|
492
|
+
}
|
|
493
|
+
if (message.licensing !== undefined) {
|
|
494
|
+
obj.licensing = architecture_pb_1.Licensing.toJSON(message.licensing);
|
|
495
|
+
}
|
|
496
|
+
if (message.technicalSpecs !== undefined) {
|
|
497
|
+
obj.technicalSpecs = architecture_pb_1.TechnicalSpecs.toJSON(message.technicalSpecs);
|
|
498
|
+
}
|
|
444
499
|
if (message.lastScrapedAt !== undefined) {
|
|
445
500
|
obj.lastScrapedAt = message.lastScrapedAt.toISOString();
|
|
446
501
|
}
|
|
447
|
-
if ((
|
|
502
|
+
if ((_b = message.dataSources) === null || _b === void 0 ? void 0 : _b.length) {
|
|
448
503
|
obj.dataSources = message.dataSources;
|
|
449
504
|
}
|
|
450
505
|
if (message.isActive !== false) {
|
|
@@ -456,19 +511,13 @@ exports.Model = {
|
|
|
456
511
|
if (message.replacementModelId !== "") {
|
|
457
512
|
obj.replacementModelId = message.replacementModelId;
|
|
458
513
|
}
|
|
459
|
-
if (message.createdAt !== undefined) {
|
|
460
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
461
|
-
}
|
|
462
|
-
if (message.updatedAt !== undefined) {
|
|
463
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
464
|
-
}
|
|
465
514
|
return obj;
|
|
466
515
|
},
|
|
467
516
|
create(base) {
|
|
468
517
|
return exports.Model.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
469
518
|
},
|
|
470
519
|
fromPartial(object) {
|
|
471
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u
|
|
520
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
472
521
|
const message = createBaseModel();
|
|
473
522
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
474
523
|
message.providerId = (_b = object.providerId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -483,9 +532,7 @@ exports.Model = {
|
|
|
483
532
|
message.releaseDate = (_l = object.releaseDate) !== null && _l !== void 0 ? _l : undefined;
|
|
484
533
|
message.trainingDataCutoff = (_m = object.trainingDataCutoff) !== null && _m !== void 0 ? _m : undefined;
|
|
485
534
|
message.deprecationDate = (_o = object.deprecationDate) !== null && _o !== void 0 ? _o : undefined;
|
|
486
|
-
message.capabilities = (object.capabilities
|
|
487
|
-
? exports.ModelCapabilities.fromPartial(object.capabilities)
|
|
488
|
-
: undefined;
|
|
535
|
+
message.capabilities = ((_p = object.capabilities) === null || _p === void 0 ? void 0 : _p.map((e) => capabilities_pb_1.Capability.fromPartial(e))) || [];
|
|
489
536
|
message.classification = (object.classification !== undefined && object.classification !== null)
|
|
490
537
|
? exports.ModelClassification.fromPartial(object.classification)
|
|
491
538
|
: undefined;
|
|
@@ -507,268 +554,26 @@ exports.Model = {
|
|
|
507
554
|
message.availability = (object.availability !== undefined && object.availability !== null)
|
|
508
555
|
? exports.Availability.fromPartial(object.availability)
|
|
509
556
|
: undefined;
|
|
510
|
-
message.
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
message.
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
message.
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
supportsJsonMode: false,
|
|
531
|
-
supportsStreaming: false,
|
|
532
|
-
supportsReasoning: false,
|
|
533
|
-
inputModalities: [],
|
|
534
|
-
outputModalities: [],
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
exports.ModelCapabilities = {
|
|
538
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
539
|
-
if (message.supportsChat !== false) {
|
|
540
|
-
writer.uint32(8).bool(message.supportsChat);
|
|
541
|
-
}
|
|
542
|
-
if (message.supportsCompletion !== false) {
|
|
543
|
-
writer.uint32(16).bool(message.supportsCompletion);
|
|
544
|
-
}
|
|
545
|
-
if (message.supportsEmbeddings !== false) {
|
|
546
|
-
writer.uint32(24).bool(message.supportsEmbeddings);
|
|
547
|
-
}
|
|
548
|
-
if (message.supportsVision !== false) {
|
|
549
|
-
writer.uint32(32).bool(message.supportsVision);
|
|
550
|
-
}
|
|
551
|
-
if (message.supportsAudio !== false) {
|
|
552
|
-
writer.uint32(40).bool(message.supportsAudio);
|
|
553
|
-
}
|
|
554
|
-
if (message.supportsVideo !== false) {
|
|
555
|
-
writer.uint32(48).bool(message.supportsVideo);
|
|
556
|
-
}
|
|
557
|
-
if (message.supportsToolCalls !== false) {
|
|
558
|
-
writer.uint32(56).bool(message.supportsToolCalls);
|
|
559
|
-
}
|
|
560
|
-
if (message.supportsFunctionCalls !== false) {
|
|
561
|
-
writer.uint32(64).bool(message.supportsFunctionCalls);
|
|
562
|
-
}
|
|
563
|
-
if (message.supportsJsonMode !== false) {
|
|
564
|
-
writer.uint32(72).bool(message.supportsJsonMode);
|
|
565
|
-
}
|
|
566
|
-
if (message.supportsStreaming !== false) {
|
|
567
|
-
writer.uint32(80).bool(message.supportsStreaming);
|
|
568
|
-
}
|
|
569
|
-
if (message.supportsReasoning !== false) {
|
|
570
|
-
writer.uint32(88).bool(message.supportsReasoning);
|
|
571
|
-
}
|
|
572
|
-
for (const v of message.inputModalities) {
|
|
573
|
-
writer.uint32(98).string(v);
|
|
574
|
-
}
|
|
575
|
-
for (const v of message.outputModalities) {
|
|
576
|
-
writer.uint32(106).string(v);
|
|
577
|
-
}
|
|
578
|
-
return writer;
|
|
579
|
-
},
|
|
580
|
-
decode(input, length) {
|
|
581
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
582
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
583
|
-
const message = createBaseModelCapabilities();
|
|
584
|
-
while (reader.pos < end) {
|
|
585
|
-
const tag = reader.uint32();
|
|
586
|
-
switch (tag >>> 3) {
|
|
587
|
-
case 1: {
|
|
588
|
-
if (tag !== 8) {
|
|
589
|
-
break;
|
|
590
|
-
}
|
|
591
|
-
message.supportsChat = reader.bool();
|
|
592
|
-
continue;
|
|
593
|
-
}
|
|
594
|
-
case 2: {
|
|
595
|
-
if (tag !== 16) {
|
|
596
|
-
break;
|
|
597
|
-
}
|
|
598
|
-
message.supportsCompletion = reader.bool();
|
|
599
|
-
continue;
|
|
600
|
-
}
|
|
601
|
-
case 3: {
|
|
602
|
-
if (tag !== 24) {
|
|
603
|
-
break;
|
|
604
|
-
}
|
|
605
|
-
message.supportsEmbeddings = reader.bool();
|
|
606
|
-
continue;
|
|
607
|
-
}
|
|
608
|
-
case 4: {
|
|
609
|
-
if (tag !== 32) {
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
message.supportsVision = reader.bool();
|
|
613
|
-
continue;
|
|
614
|
-
}
|
|
615
|
-
case 5: {
|
|
616
|
-
if (tag !== 40) {
|
|
617
|
-
break;
|
|
618
|
-
}
|
|
619
|
-
message.supportsAudio = reader.bool();
|
|
620
|
-
continue;
|
|
621
|
-
}
|
|
622
|
-
case 6: {
|
|
623
|
-
if (tag !== 48) {
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
message.supportsVideo = reader.bool();
|
|
627
|
-
continue;
|
|
628
|
-
}
|
|
629
|
-
case 7: {
|
|
630
|
-
if (tag !== 56) {
|
|
631
|
-
break;
|
|
632
|
-
}
|
|
633
|
-
message.supportsToolCalls = reader.bool();
|
|
634
|
-
continue;
|
|
635
|
-
}
|
|
636
|
-
case 8: {
|
|
637
|
-
if (tag !== 64) {
|
|
638
|
-
break;
|
|
639
|
-
}
|
|
640
|
-
message.supportsFunctionCalls = reader.bool();
|
|
641
|
-
continue;
|
|
642
|
-
}
|
|
643
|
-
case 9: {
|
|
644
|
-
if (tag !== 72) {
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
message.supportsJsonMode = reader.bool();
|
|
648
|
-
continue;
|
|
649
|
-
}
|
|
650
|
-
case 10: {
|
|
651
|
-
if (tag !== 80) {
|
|
652
|
-
break;
|
|
653
|
-
}
|
|
654
|
-
message.supportsStreaming = reader.bool();
|
|
655
|
-
continue;
|
|
656
|
-
}
|
|
657
|
-
case 11: {
|
|
658
|
-
if (tag !== 88) {
|
|
659
|
-
break;
|
|
660
|
-
}
|
|
661
|
-
message.supportsReasoning = reader.bool();
|
|
662
|
-
continue;
|
|
663
|
-
}
|
|
664
|
-
case 12: {
|
|
665
|
-
if (tag !== 98) {
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
message.inputModalities.push(reader.string());
|
|
669
|
-
continue;
|
|
670
|
-
}
|
|
671
|
-
case 13: {
|
|
672
|
-
if (tag !== 106) {
|
|
673
|
-
break;
|
|
674
|
-
}
|
|
675
|
-
message.outputModalities.push(reader.string());
|
|
676
|
-
continue;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
680
|
-
break;
|
|
681
|
-
}
|
|
682
|
-
reader.skip(tag & 7);
|
|
683
|
-
}
|
|
684
|
-
return message;
|
|
685
|
-
},
|
|
686
|
-
fromJSON(object) {
|
|
687
|
-
return {
|
|
688
|
-
supportsChat: isSet(object.supportsChat) ? globalThis.Boolean(object.supportsChat) : false,
|
|
689
|
-
supportsCompletion: isSet(object.supportsCompletion) ? globalThis.Boolean(object.supportsCompletion) : false,
|
|
690
|
-
supportsEmbeddings: isSet(object.supportsEmbeddings) ? globalThis.Boolean(object.supportsEmbeddings) : false,
|
|
691
|
-
supportsVision: isSet(object.supportsVision) ? globalThis.Boolean(object.supportsVision) : false,
|
|
692
|
-
supportsAudio: isSet(object.supportsAudio) ? globalThis.Boolean(object.supportsAudio) : false,
|
|
693
|
-
supportsVideo: isSet(object.supportsVideo) ? globalThis.Boolean(object.supportsVideo) : false,
|
|
694
|
-
supportsToolCalls: isSet(object.supportsToolCalls) ? globalThis.Boolean(object.supportsToolCalls) : false,
|
|
695
|
-
supportsFunctionCalls: isSet(object.supportsFunctionCalls)
|
|
696
|
-
? globalThis.Boolean(object.supportsFunctionCalls)
|
|
697
|
-
: false,
|
|
698
|
-
supportsJsonMode: isSet(object.supportsJsonMode) ? globalThis.Boolean(object.supportsJsonMode) : false,
|
|
699
|
-
supportsStreaming: isSet(object.supportsStreaming) ? globalThis.Boolean(object.supportsStreaming) : false,
|
|
700
|
-
supportsReasoning: isSet(object.supportsReasoning) ? globalThis.Boolean(object.supportsReasoning) : false,
|
|
701
|
-
inputModalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.inputModalities)
|
|
702
|
-
? object.inputModalities.map((e) => globalThis.String(e))
|
|
703
|
-
: [],
|
|
704
|
-
outputModalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.outputModalities)
|
|
705
|
-
? object.outputModalities.map((e) => globalThis.String(e))
|
|
706
|
-
: [],
|
|
707
|
-
};
|
|
708
|
-
},
|
|
709
|
-
toJSON(message) {
|
|
710
|
-
var _a, _b;
|
|
711
|
-
const obj = {};
|
|
712
|
-
if (message.supportsChat !== false) {
|
|
713
|
-
obj.supportsChat = message.supportsChat;
|
|
714
|
-
}
|
|
715
|
-
if (message.supportsCompletion !== false) {
|
|
716
|
-
obj.supportsCompletion = message.supportsCompletion;
|
|
717
|
-
}
|
|
718
|
-
if (message.supportsEmbeddings !== false) {
|
|
719
|
-
obj.supportsEmbeddings = message.supportsEmbeddings;
|
|
720
|
-
}
|
|
721
|
-
if (message.supportsVision !== false) {
|
|
722
|
-
obj.supportsVision = message.supportsVision;
|
|
723
|
-
}
|
|
724
|
-
if (message.supportsAudio !== false) {
|
|
725
|
-
obj.supportsAudio = message.supportsAudio;
|
|
726
|
-
}
|
|
727
|
-
if (message.supportsVideo !== false) {
|
|
728
|
-
obj.supportsVideo = message.supportsVideo;
|
|
729
|
-
}
|
|
730
|
-
if (message.supportsToolCalls !== false) {
|
|
731
|
-
obj.supportsToolCalls = message.supportsToolCalls;
|
|
732
|
-
}
|
|
733
|
-
if (message.supportsFunctionCalls !== false) {
|
|
734
|
-
obj.supportsFunctionCalls = message.supportsFunctionCalls;
|
|
735
|
-
}
|
|
736
|
-
if (message.supportsJsonMode !== false) {
|
|
737
|
-
obj.supportsJsonMode = message.supportsJsonMode;
|
|
738
|
-
}
|
|
739
|
-
if (message.supportsStreaming !== false) {
|
|
740
|
-
obj.supportsStreaming = message.supportsStreaming;
|
|
741
|
-
}
|
|
742
|
-
if (message.supportsReasoning !== false) {
|
|
743
|
-
obj.supportsReasoning = message.supportsReasoning;
|
|
744
|
-
}
|
|
745
|
-
if ((_a = message.inputModalities) === null || _a === void 0 ? void 0 : _a.length) {
|
|
746
|
-
obj.inputModalities = message.inputModalities;
|
|
747
|
-
}
|
|
748
|
-
if ((_b = message.outputModalities) === null || _b === void 0 ? void 0 : _b.length) {
|
|
749
|
-
obj.outputModalities = message.outputModalities;
|
|
750
|
-
}
|
|
751
|
-
return obj;
|
|
752
|
-
},
|
|
753
|
-
create(base) {
|
|
754
|
-
return exports.ModelCapabilities.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
755
|
-
},
|
|
756
|
-
fromPartial(object) {
|
|
757
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
758
|
-
const message = createBaseModelCapabilities();
|
|
759
|
-
message.supportsChat = (_a = object.supportsChat) !== null && _a !== void 0 ? _a : false;
|
|
760
|
-
message.supportsCompletion = (_b = object.supportsCompletion) !== null && _b !== void 0 ? _b : false;
|
|
761
|
-
message.supportsEmbeddings = (_c = object.supportsEmbeddings) !== null && _c !== void 0 ? _c : false;
|
|
762
|
-
message.supportsVision = (_d = object.supportsVision) !== null && _d !== void 0 ? _d : false;
|
|
763
|
-
message.supportsAudio = (_e = object.supportsAudio) !== null && _e !== void 0 ? _e : false;
|
|
764
|
-
message.supportsVideo = (_f = object.supportsVideo) !== null && _f !== void 0 ? _f : false;
|
|
765
|
-
message.supportsToolCalls = (_g = object.supportsToolCalls) !== null && _g !== void 0 ? _g : false;
|
|
766
|
-
message.supportsFunctionCalls = (_h = object.supportsFunctionCalls) !== null && _h !== void 0 ? _h : false;
|
|
767
|
-
message.supportsJsonMode = (_j = object.supportsJsonMode) !== null && _j !== void 0 ? _j : false;
|
|
768
|
-
message.supportsStreaming = (_k = object.supportsStreaming) !== null && _k !== void 0 ? _k : false;
|
|
769
|
-
message.supportsReasoning = (_l = object.supportsReasoning) !== null && _l !== void 0 ? _l : false;
|
|
770
|
-
message.inputModalities = ((_m = object.inputModalities) === null || _m === void 0 ? void 0 : _m.map((e) => e)) || [];
|
|
771
|
-
message.outputModalities = ((_o = object.outputModalities) === null || _o === void 0 ? void 0 : _o.map((e) => e)) || [];
|
|
557
|
+
message.architecture = (object.architecture !== undefined && object.architecture !== null)
|
|
558
|
+
? architecture_pb_1.Architecture.fromPartial(object.architecture)
|
|
559
|
+
: undefined;
|
|
560
|
+
message.training = (object.training !== undefined && object.training !== null)
|
|
561
|
+
? architecture_pb_1.Training.fromPartial(object.training)
|
|
562
|
+
: undefined;
|
|
563
|
+
message.safety = (object.safety !== undefined && object.safety !== null)
|
|
564
|
+
? architecture_pb_1.Safety.fromPartial(object.safety)
|
|
565
|
+
: undefined;
|
|
566
|
+
message.licensing = (object.licensing !== undefined && object.licensing !== null)
|
|
567
|
+
? architecture_pb_1.Licensing.fromPartial(object.licensing)
|
|
568
|
+
: undefined;
|
|
569
|
+
message.technicalSpecs = (object.technicalSpecs !== undefined && object.technicalSpecs !== null)
|
|
570
|
+
? architecture_pb_1.TechnicalSpecs.fromPartial(object.technicalSpecs)
|
|
571
|
+
: undefined;
|
|
572
|
+
message.lastScrapedAt = (_q = object.lastScrapedAt) !== null && _q !== void 0 ? _q : undefined;
|
|
573
|
+
message.dataSources = ((_r = object.dataSources) === null || _r === void 0 ? void 0 : _r.map((e) => e)) || [];
|
|
574
|
+
message.isActive = (_s = object.isActive) !== null && _s !== void 0 ? _s : false;
|
|
575
|
+
message.isDeprecated = (_t = object.isDeprecated) !== null && _t !== void 0 ? _t : false;
|
|
576
|
+
message.replacementModelId = (_u = object.replacementModelId) !== null && _u !== void 0 ? _u : "";
|
|
772
577
|
return message;
|
|
773
578
|
},
|
|
774
579
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "weaveapi.
|
|
2
|
+
export declare const protobufPackage = "weaveapi.llmx.v1";
|
|
3
3
|
export interface Provider {
|
|
4
4
|
id: string;
|
|
5
5
|
slug: string;
|
|
@@ -10,8 +10,6 @@ export interface Provider {
|
|
|
10
10
|
logoUrl: string;
|
|
11
11
|
isActive: boolean;
|
|
12
12
|
modelCount: number;
|
|
13
|
-
createdAt: Date | undefined;
|
|
14
|
-
updatedAt: Date | undefined;
|
|
15
13
|
}
|
|
16
14
|
export declare const Provider: MessageFns<Provider>;
|
|
17
15
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|