@meetkai/mka1 0.54.101 → 0.54.103
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/bin/mcp-server.js +250 -15
- package/bin/mcp-server.js.map +16 -15
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +24 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +26 -2
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/cataloglifecycle.d.ts +35 -0
- package/dist/commonjs/models/components/cataloglifecycle.d.ts.map +1 -0
- package/dist/commonjs/models/components/cataloglifecycle.js +74 -0
- package/dist/commonjs/models/components/cataloglifecycle.js.map +1 -0
- package/dist/commonjs/models/components/catalogpricepreview.d.ts +20 -0
- package/dist/commonjs/models/components/catalogpricepreview.d.ts.map +1 -1
- package/dist/commonjs/models/components/catalogpricepreview.js +16 -0
- package/dist/commonjs/models/components/catalogpricepreview.js.map +1 -1
- package/dist/commonjs/models/components/effectivepricerow.d.ts +20 -0
- package/dist/commonjs/models/components/effectivepricerow.d.ts.map +1 -1
- package/dist/commonjs/models/components/effectivepricerow.js +16 -0
- package/dist/commonjs/models/components/effectivepricerow.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/modelpricerow.d.ts +20 -0
- package/dist/commonjs/models/components/modelpricerow.d.ts.map +1 -1
- package/dist/commonjs/models/components/modelpricerow.js +16 -0
- package/dist/commonjs/models/components/modelpricerow.js.map +1 -1
- package/dist/commonjs/models/components/putmodelpricebody.d.ts +20 -0
- package/dist/commonjs/models/components/putmodelpricebody.d.ts.map +1 -1
- package/dist/commonjs/models/components/putmodelpricebody.js +16 -0
- package/dist/commonjs/models/components/putmodelpricebody.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +24 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +25 -2
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +94 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +70 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +94 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +69 -1
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +24 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +24 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/cataloglifecycle.d.ts +35 -0
- package/dist/esm/models/components/cataloglifecycle.d.ts.map +1 -0
- package/dist/esm/models/components/cataloglifecycle.js +36 -0
- package/dist/esm/models/components/cataloglifecycle.js.map +1 -0
- package/dist/esm/models/components/catalogpricepreview.d.ts +20 -0
- package/dist/esm/models/components/catalogpricepreview.d.ts.map +1 -1
- package/dist/esm/models/components/catalogpricepreview.js +16 -0
- package/dist/esm/models/components/catalogpricepreview.js.map +1 -1
- package/dist/esm/models/components/effectivepricerow.d.ts +20 -0
- package/dist/esm/models/components/effectivepricerow.d.ts.map +1 -1
- package/dist/esm/models/components/effectivepricerow.js +16 -0
- package/dist/esm/models/components/effectivepricerow.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/modelpricerow.d.ts +20 -0
- package/dist/esm/models/components/modelpricerow.d.ts.map +1 -1
- package/dist/esm/models/components/modelpricerow.js +16 -0
- package/dist/esm/models/components/modelpricerow.js.map +1 -1
- package/dist/esm/models/components/putmodelpricebody.d.ts +20 -0
- package/dist/esm/models/components/putmodelpricebody.d.ts.map +1 -1
- package/dist/esm/models/components/putmodelpricebody.js +16 -0
- package/dist/esm/models/components/putmodelpricebody.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +24 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +23 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +94 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +67 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +94 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +66 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/addcatalogmodelrequest.ts +47 -0
- package/src/models/components/cataloglifecycle.ts +81 -0
- package/src/models/components/catalogpricepreview.ts +36 -0
- package/src/models/components/effectivepricerow.ts +36 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/modelpricerow.ts +36 -0
- package/src/models/components/putmodelpricebody.ts +36 -0
- package/src/models/components/updatecatalogmodelrequest.ts +49 -0
- package/src/models/operations/getmodel.ts +162 -0
- package/src/models/operations/listmodels.ts +168 -0
|
@@ -64,6 +64,47 @@ export type EmbeddingDimensionRange = {
|
|
|
64
64
|
default: number;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
export const Weights = {
|
|
68
|
+
Open: "open",
|
|
69
|
+
Closed: "closed",
|
|
70
|
+
} as const;
|
|
71
|
+
export type Weights = ClosedEnum<typeof Weights>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
75
|
+
*/
|
|
76
|
+
export const GetModelStatus = {
|
|
77
|
+
Active: "active",
|
|
78
|
+
Deprecated: "deprecated",
|
|
79
|
+
Retired: "retired",
|
|
80
|
+
} as const;
|
|
81
|
+
/**
|
|
82
|
+
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
83
|
+
*/
|
|
84
|
+
export type GetModelStatus = ClosedEnum<typeof GetModelStatus>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
|
|
88
|
+
*/
|
|
89
|
+
export type Lifecycle = {
|
|
90
|
+
/**
|
|
91
|
+
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
92
|
+
*/
|
|
93
|
+
status: GetModelStatus;
|
|
94
|
+
/**
|
|
95
|
+
* The day the deprecation took effect (YYYY-MM-DD). Null while active or unrecorded.
|
|
96
|
+
*/
|
|
97
|
+
deprecatedAt: RFCDate | null;
|
|
98
|
+
/**
|
|
99
|
+
* The day the model stops being served (YYYY-MM-DD). Null while active or not yet announced.
|
|
100
|
+
*/
|
|
101
|
+
retiresAt: RFCDate | null;
|
|
102
|
+
/**
|
|
103
|
+
* Registry id of the model callers should move to. Null when none is named. A cluster catalog id: an organisation uses it the way it uses any catalog model, activating it in its registry if it has not already.
|
|
104
|
+
*/
|
|
105
|
+
successor: string | null;
|
|
106
|
+
};
|
|
107
|
+
|
|
67
108
|
/**
|
|
68
109
|
* Curated public generation capabilities for this model.
|
|
69
110
|
*/
|
|
@@ -139,6 +180,34 @@ export type GetModelResponseBody = {
|
|
|
139
180
|
* Where the model may be served from, as the registry declares it (e.g. ["aws:us-west-2"]): short opaque labels, not a guarantee for any one request. A request's own location, when the serving upstream reports it, is on the response object as resolved_serving_location. Null when the registry declares none, which is the case for externally hosted models.
|
|
140
181
|
*/
|
|
141
182
|
servingLocations: Array<string> | null;
|
|
183
|
+
/**
|
|
184
|
+
* Who trained the model, mirroring the registry's `modelCard.developer` (e.g. "MeetKai", "Z.AI"). Null when unrecorded.
|
|
185
|
+
*/
|
|
186
|
+
developer: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* The model these weights were derived from, as its publisher names it, mirroring `modelCard.baseModel`. Null for a foundation model and when unrecorded.
|
|
189
|
+
*/
|
|
190
|
+
baseModel: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the weights can be obtained, mirroring `modelCard.weights`; the licence applies to them. Null when unrecorded.
|
|
193
|
+
*/
|
|
194
|
+
weights: Weights | null;
|
|
195
|
+
/**
|
|
196
|
+
* Licence of the weights as the developer publishes it, mirroring `modelCard.license`: an SPDX identifier where one exists (e.g. "apache-2.0"), or "proprietary" for closed weights. An identifier, not validated against the SPDX list. Null when unrecorded.
|
|
197
|
+
*/
|
|
198
|
+
license: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
|
|
201
|
+
*/
|
|
202
|
+
languages: Array<string> | null;
|
|
203
|
+
/**
|
|
204
|
+
* Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
|
|
205
|
+
*/
|
|
206
|
+
limitations: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
|
|
209
|
+
*/
|
|
210
|
+
lifecycle: Lifecycle;
|
|
142
211
|
/**
|
|
143
212
|
* Curated public generation capabilities for this model.
|
|
144
213
|
*/
|
|
@@ -331,6 +400,76 @@ export function embeddingDimensionRangeFromJSON(
|
|
|
331
400
|
);
|
|
332
401
|
}
|
|
333
402
|
|
|
403
|
+
/** @internal */
|
|
404
|
+
export const Weights$inboundSchema: z.ZodNativeEnum<typeof Weights> = z
|
|
405
|
+
.nativeEnum(Weights);
|
|
406
|
+
/** @internal */
|
|
407
|
+
export const Weights$outboundSchema: z.ZodNativeEnum<typeof Weights> =
|
|
408
|
+
Weights$inboundSchema;
|
|
409
|
+
|
|
410
|
+
/** @internal */
|
|
411
|
+
export const GetModelStatus$inboundSchema: z.ZodNativeEnum<
|
|
412
|
+
typeof GetModelStatus
|
|
413
|
+
> = z.nativeEnum(GetModelStatus);
|
|
414
|
+
/** @internal */
|
|
415
|
+
export const GetModelStatus$outboundSchema: z.ZodNativeEnum<
|
|
416
|
+
typeof GetModelStatus
|
|
417
|
+
> = GetModelStatus$inboundSchema;
|
|
418
|
+
|
|
419
|
+
/** @internal */
|
|
420
|
+
export const Lifecycle$inboundSchema: z.ZodType<
|
|
421
|
+
Lifecycle,
|
|
422
|
+
z.ZodTypeDef,
|
|
423
|
+
unknown
|
|
424
|
+
> = z.object({
|
|
425
|
+
status: GetModelStatus$inboundSchema,
|
|
426
|
+
deprecated_at: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
427
|
+
retires_at: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
428
|
+
successor: z.nullable(z.string()),
|
|
429
|
+
}).transform((v) => {
|
|
430
|
+
return remap$(v, {
|
|
431
|
+
"deprecated_at": "deprecatedAt",
|
|
432
|
+
"retires_at": "retiresAt",
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
/** @internal */
|
|
436
|
+
export type Lifecycle$Outbound = {
|
|
437
|
+
status: string;
|
|
438
|
+
deprecated_at: string | null;
|
|
439
|
+
retires_at: string | null;
|
|
440
|
+
successor: string | null;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
/** @internal */
|
|
444
|
+
export const Lifecycle$outboundSchema: z.ZodType<
|
|
445
|
+
Lifecycle$Outbound,
|
|
446
|
+
z.ZodTypeDef,
|
|
447
|
+
Lifecycle
|
|
448
|
+
> = z.object({
|
|
449
|
+
status: GetModelStatus$outboundSchema,
|
|
450
|
+
deprecatedAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
451
|
+
retiresAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
452
|
+
successor: z.nullable(z.string()),
|
|
453
|
+
}).transform((v) => {
|
|
454
|
+
return remap$(v, {
|
|
455
|
+
deprecatedAt: "deprecated_at",
|
|
456
|
+
retiresAt: "retires_at",
|
|
457
|
+
});
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
export function lifecycleToJSON(lifecycle: Lifecycle): string {
|
|
461
|
+
return JSON.stringify(Lifecycle$outboundSchema.parse(lifecycle));
|
|
462
|
+
}
|
|
463
|
+
export function lifecycleFromJSON(
|
|
464
|
+
jsonString: string,
|
|
465
|
+
): SafeParseResult<Lifecycle, SDKValidationError> {
|
|
466
|
+
return safeParse(
|
|
467
|
+
jsonString,
|
|
468
|
+
(x) => Lifecycle$inboundSchema.parse(JSON.parse(x)),
|
|
469
|
+
`Failed to parse 'Lifecycle' from JSON`,
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
|
|
334
473
|
/** @internal */
|
|
335
474
|
export const Capabilities$inboundSchema: z.ZodType<
|
|
336
475
|
Capabilities,
|
|
@@ -421,6 +560,13 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
421
560
|
active_parameter_count: z.nullable(z.number().int()),
|
|
422
561
|
release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
423
562
|
serving_locations: z.nullable(z.array(z.string())),
|
|
563
|
+
developer: z.nullable(z.string()),
|
|
564
|
+
base_model: z.nullable(z.string()),
|
|
565
|
+
weights: z.nullable(Weights$inboundSchema),
|
|
566
|
+
license: z.nullable(z.string()),
|
|
567
|
+
languages: z.nullable(z.array(z.string())),
|
|
568
|
+
limitations: z.nullable(z.string()),
|
|
569
|
+
lifecycle: z.lazy(() => Lifecycle$inboundSchema),
|
|
424
570
|
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
425
571
|
}).transform((v) => {
|
|
426
572
|
return remap$(v, {
|
|
@@ -436,6 +582,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
436
582
|
"active_parameter_count": "activeParameterCount",
|
|
437
583
|
"release_date": "releaseDate",
|
|
438
584
|
"serving_locations": "servingLocations",
|
|
585
|
+
"base_model": "baseModel",
|
|
439
586
|
});
|
|
440
587
|
});
|
|
441
588
|
/** @internal */
|
|
@@ -455,6 +602,13 @@ export type GetModelResponseBody$Outbound = {
|
|
|
455
602
|
active_parameter_count: number | null;
|
|
456
603
|
release_date: string | null;
|
|
457
604
|
serving_locations: Array<string> | null;
|
|
605
|
+
developer: string | null;
|
|
606
|
+
base_model: string | null;
|
|
607
|
+
weights: string | null;
|
|
608
|
+
license: string | null;
|
|
609
|
+
languages: Array<string> | null;
|
|
610
|
+
limitations: string | null;
|
|
611
|
+
lifecycle: Lifecycle$Outbound;
|
|
458
612
|
capabilities: Capabilities$Outbound;
|
|
459
613
|
};
|
|
460
614
|
|
|
@@ -485,6 +639,13 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
485
639
|
activeParameterCount: z.nullable(z.number().int()),
|
|
486
640
|
releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
487
641
|
servingLocations: z.nullable(z.array(z.string())),
|
|
642
|
+
developer: z.nullable(z.string()),
|
|
643
|
+
baseModel: z.nullable(z.string()),
|
|
644
|
+
weights: z.nullable(Weights$outboundSchema),
|
|
645
|
+
license: z.nullable(z.string()),
|
|
646
|
+
languages: z.nullable(z.array(z.string())),
|
|
647
|
+
limitations: z.nullable(z.string()),
|
|
648
|
+
lifecycle: z.lazy(() => Lifecycle$outboundSchema),
|
|
488
649
|
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
489
650
|
}).transform((v) => {
|
|
490
651
|
return remap$(v, {
|
|
@@ -500,6 +661,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
500
661
|
activeParameterCount: "active_parameter_count",
|
|
501
662
|
releaseDate: "release_date",
|
|
502
663
|
servingLocations: "serving_locations",
|
|
664
|
+
baseModel: "base_model",
|
|
503
665
|
});
|
|
504
666
|
});
|
|
505
667
|
|
|
@@ -63,6 +63,47 @@ export type ListModelsEmbeddingDimensionRange = {
|
|
|
63
63
|
default: number;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
export const ListModelsWeights = {
|
|
67
|
+
Open: "open",
|
|
68
|
+
Closed: "closed",
|
|
69
|
+
} as const;
|
|
70
|
+
export type ListModelsWeights = ClosedEnum<typeof ListModelsWeights>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
74
|
+
*/
|
|
75
|
+
export const ListModelsStatus = {
|
|
76
|
+
Active: "active",
|
|
77
|
+
Deprecated: "deprecated",
|
|
78
|
+
Retired: "retired",
|
|
79
|
+
} as const;
|
|
80
|
+
/**
|
|
81
|
+
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
82
|
+
*/
|
|
83
|
+
export type ListModelsStatus = ClosedEnum<typeof ListModelsStatus>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
|
|
87
|
+
*/
|
|
88
|
+
export type ListModelsLifecycle = {
|
|
89
|
+
/**
|
|
90
|
+
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
91
|
+
*/
|
|
92
|
+
status: ListModelsStatus;
|
|
93
|
+
/**
|
|
94
|
+
* The day the deprecation took effect (YYYY-MM-DD). Null while active or unrecorded.
|
|
95
|
+
*/
|
|
96
|
+
deprecatedAt: RFCDate | null;
|
|
97
|
+
/**
|
|
98
|
+
* The day the model stops being served (YYYY-MM-DD). Null while active or not yet announced.
|
|
99
|
+
*/
|
|
100
|
+
retiresAt: RFCDate | null;
|
|
101
|
+
/**
|
|
102
|
+
* Registry id of the model callers should move to. Null when none is named. A cluster catalog id: an organisation uses it the way it uses any catalog model, activating it in its registry if it has not already.
|
|
103
|
+
*/
|
|
104
|
+
successor: string | null;
|
|
105
|
+
};
|
|
106
|
+
|
|
66
107
|
/**
|
|
67
108
|
* Curated public generation capabilities for this model.
|
|
68
109
|
*/
|
|
@@ -135,6 +176,34 @@ export type ListModelsData = {
|
|
|
135
176
|
* Where the model may be served from, as the registry declares it (e.g. ["aws:us-west-2"]): short opaque labels, not a guarantee for any one request. A request's own location, when the serving upstream reports it, is on the response object as resolved_serving_location. Null when the registry declares none, which is the case for externally hosted models.
|
|
136
177
|
*/
|
|
137
178
|
servingLocations: Array<string> | null;
|
|
179
|
+
/**
|
|
180
|
+
* Who trained the model, mirroring the registry's `modelCard.developer` (e.g. "MeetKai", "Z.AI"). Null when unrecorded.
|
|
181
|
+
*/
|
|
182
|
+
developer: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* The model these weights were derived from, as its publisher names it, mirroring `modelCard.baseModel`. Null for a foundation model and when unrecorded.
|
|
185
|
+
*/
|
|
186
|
+
baseModel: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* Whether the weights can be obtained, mirroring `modelCard.weights`; the licence applies to them. Null when unrecorded.
|
|
189
|
+
*/
|
|
190
|
+
weights: ListModelsWeights | null;
|
|
191
|
+
/**
|
|
192
|
+
* Licence of the weights as the developer publishes it, mirroring `modelCard.license`: an SPDX identifier where one exists (e.g. "apache-2.0"), or "proprietary" for closed weights. An identifier, not validated against the SPDX list. Null when unrecorded.
|
|
193
|
+
*/
|
|
194
|
+
license: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
|
|
197
|
+
*/
|
|
198
|
+
languages: Array<string> | null;
|
|
199
|
+
/**
|
|
200
|
+
* Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
|
|
201
|
+
*/
|
|
202
|
+
limitations: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
|
|
205
|
+
*/
|
|
206
|
+
lifecycle: ListModelsLifecycle;
|
|
138
207
|
/**
|
|
139
208
|
* Curated public generation capabilities for this model.
|
|
140
209
|
*/
|
|
@@ -340,6 +409,82 @@ export function listModelsEmbeddingDimensionRangeFromJSON(
|
|
|
340
409
|
);
|
|
341
410
|
}
|
|
342
411
|
|
|
412
|
+
/** @internal */
|
|
413
|
+
export const ListModelsWeights$inboundSchema: z.ZodNativeEnum<
|
|
414
|
+
typeof ListModelsWeights
|
|
415
|
+
> = z.nativeEnum(ListModelsWeights);
|
|
416
|
+
/** @internal */
|
|
417
|
+
export const ListModelsWeights$outboundSchema: z.ZodNativeEnum<
|
|
418
|
+
typeof ListModelsWeights
|
|
419
|
+
> = ListModelsWeights$inboundSchema;
|
|
420
|
+
|
|
421
|
+
/** @internal */
|
|
422
|
+
export const ListModelsStatus$inboundSchema: z.ZodNativeEnum<
|
|
423
|
+
typeof ListModelsStatus
|
|
424
|
+
> = z.nativeEnum(ListModelsStatus);
|
|
425
|
+
/** @internal */
|
|
426
|
+
export const ListModelsStatus$outboundSchema: z.ZodNativeEnum<
|
|
427
|
+
typeof ListModelsStatus
|
|
428
|
+
> = ListModelsStatus$inboundSchema;
|
|
429
|
+
|
|
430
|
+
/** @internal */
|
|
431
|
+
export const ListModelsLifecycle$inboundSchema: z.ZodType<
|
|
432
|
+
ListModelsLifecycle,
|
|
433
|
+
z.ZodTypeDef,
|
|
434
|
+
unknown
|
|
435
|
+
> = z.object({
|
|
436
|
+
status: ListModelsStatus$inboundSchema,
|
|
437
|
+
deprecated_at: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
438
|
+
retires_at: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
439
|
+
successor: z.nullable(z.string()),
|
|
440
|
+
}).transform((v) => {
|
|
441
|
+
return remap$(v, {
|
|
442
|
+
"deprecated_at": "deprecatedAt",
|
|
443
|
+
"retires_at": "retiresAt",
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
/** @internal */
|
|
447
|
+
export type ListModelsLifecycle$Outbound = {
|
|
448
|
+
status: string;
|
|
449
|
+
deprecated_at: string | null;
|
|
450
|
+
retires_at: string | null;
|
|
451
|
+
successor: string | null;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/** @internal */
|
|
455
|
+
export const ListModelsLifecycle$outboundSchema: z.ZodType<
|
|
456
|
+
ListModelsLifecycle$Outbound,
|
|
457
|
+
z.ZodTypeDef,
|
|
458
|
+
ListModelsLifecycle
|
|
459
|
+
> = z.object({
|
|
460
|
+
status: ListModelsStatus$outboundSchema,
|
|
461
|
+
deprecatedAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
462
|
+
retiresAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
463
|
+
successor: z.nullable(z.string()),
|
|
464
|
+
}).transform((v) => {
|
|
465
|
+
return remap$(v, {
|
|
466
|
+
deprecatedAt: "deprecated_at",
|
|
467
|
+
retiresAt: "retires_at",
|
|
468
|
+
});
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
export function listModelsLifecycleToJSON(
|
|
472
|
+
listModelsLifecycle: ListModelsLifecycle,
|
|
473
|
+
): string {
|
|
474
|
+
return JSON.stringify(
|
|
475
|
+
ListModelsLifecycle$outboundSchema.parse(listModelsLifecycle),
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
export function listModelsLifecycleFromJSON(
|
|
479
|
+
jsonString: string,
|
|
480
|
+
): SafeParseResult<ListModelsLifecycle, SDKValidationError> {
|
|
481
|
+
return safeParse(
|
|
482
|
+
jsonString,
|
|
483
|
+
(x) => ListModelsLifecycle$inboundSchema.parse(JSON.parse(x)),
|
|
484
|
+
`Failed to parse 'ListModelsLifecycle' from JSON`,
|
|
485
|
+
);
|
|
486
|
+
}
|
|
487
|
+
|
|
343
488
|
/** @internal */
|
|
344
489
|
export const ListModelsCapabilities$inboundSchema: z.ZodType<
|
|
345
490
|
ListModelsCapabilities,
|
|
@@ -434,6 +579,13 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
434
579
|
active_parameter_count: z.nullable(z.number().int()),
|
|
435
580
|
release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
436
581
|
serving_locations: z.nullable(z.array(z.string())),
|
|
582
|
+
developer: z.nullable(z.string()),
|
|
583
|
+
base_model: z.nullable(z.string()),
|
|
584
|
+
weights: z.nullable(ListModelsWeights$inboundSchema),
|
|
585
|
+
license: z.nullable(z.string()),
|
|
586
|
+
languages: z.nullable(z.array(z.string())),
|
|
587
|
+
limitations: z.nullable(z.string()),
|
|
588
|
+
lifecycle: z.lazy(() => ListModelsLifecycle$inboundSchema),
|
|
437
589
|
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
438
590
|
}).transform((v) => {
|
|
439
591
|
return remap$(v, {
|
|
@@ -449,6 +601,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
449
601
|
"active_parameter_count": "activeParameterCount",
|
|
450
602
|
"release_date": "releaseDate",
|
|
451
603
|
"serving_locations": "servingLocations",
|
|
604
|
+
"base_model": "baseModel",
|
|
452
605
|
});
|
|
453
606
|
});
|
|
454
607
|
/** @internal */
|
|
@@ -468,6 +621,13 @@ export type ListModelsData$Outbound = {
|
|
|
468
621
|
active_parameter_count: number | null;
|
|
469
622
|
release_date: string | null;
|
|
470
623
|
serving_locations: Array<string> | null;
|
|
624
|
+
developer: string | null;
|
|
625
|
+
base_model: string | null;
|
|
626
|
+
weights: string | null;
|
|
627
|
+
license: string | null;
|
|
628
|
+
languages: Array<string> | null;
|
|
629
|
+
limitations: string | null;
|
|
630
|
+
lifecycle: ListModelsLifecycle$Outbound;
|
|
471
631
|
capabilities: ListModelsCapabilities$Outbound;
|
|
472
632
|
};
|
|
473
633
|
|
|
@@ -498,6 +658,13 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
498
658
|
activeParameterCount: z.nullable(z.number().int()),
|
|
499
659
|
releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
500
660
|
servingLocations: z.nullable(z.array(z.string())),
|
|
661
|
+
developer: z.nullable(z.string()),
|
|
662
|
+
baseModel: z.nullable(z.string()),
|
|
663
|
+
weights: z.nullable(ListModelsWeights$outboundSchema),
|
|
664
|
+
license: z.nullable(z.string()),
|
|
665
|
+
languages: z.nullable(z.array(z.string())),
|
|
666
|
+
limitations: z.nullable(z.string()),
|
|
667
|
+
lifecycle: z.lazy(() => ListModelsLifecycle$outboundSchema),
|
|
501
668
|
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
502
669
|
}).transform((v) => {
|
|
503
670
|
return remap$(v, {
|
|
@@ -513,6 +680,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
513
680
|
activeParameterCount: "active_parameter_count",
|
|
514
681
|
releaseDate: "release_date",
|
|
515
682
|
servingLocations: "serving_locations",
|
|
683
|
+
baseModel: "base_model",
|
|
516
684
|
});
|
|
517
685
|
});
|
|
518
686
|
|