@meetkai/mka1 0.54.29 → 0.54.31
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 +26 -10
- package/bin/mcp-server.js.map +7 -7
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +10 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +8 -0
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +10 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +8 -0
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +10 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +8 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +10 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +8 -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 +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/getmodel.ts +18 -0
- package/src/models/operations/listmodels.ts +18 -0
|
@@ -45,6 +45,14 @@ export type ListModelsData = {
|
|
|
45
45
|
created: number;
|
|
46
46
|
ownedBy: string;
|
|
47
47
|
modelType: ListModelsModelType;
|
|
48
|
+
/**
|
|
49
|
+
* Modalities this model accepts as input, mirroring the registry's `capabilities.modalities.input` (e.g. `["text", "image"]`). Clients use it to decide whether an attachment — an image, audio clip, or video — can be sent to this model at all.
|
|
50
|
+
*/
|
|
51
|
+
inputModalities: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
|
|
54
|
+
*/
|
|
55
|
+
outputModalities: Array<string>;
|
|
48
56
|
/**
|
|
49
57
|
* Curated public sampling capabilities for this model.
|
|
50
58
|
*/
|
|
@@ -178,11 +186,15 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
178
186
|
created: z.number().int(),
|
|
179
187
|
owned_by: z.string(),
|
|
180
188
|
model_type: ListModelsModelType$inboundSchema,
|
|
189
|
+
input_modalities: z.array(z.string()),
|
|
190
|
+
output_modalities: z.array(z.string()),
|
|
181
191
|
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
182
192
|
}).transform((v) => {
|
|
183
193
|
return remap$(v, {
|
|
184
194
|
"owned_by": "ownedBy",
|
|
185
195
|
"model_type": "modelType",
|
|
196
|
+
"input_modalities": "inputModalities",
|
|
197
|
+
"output_modalities": "outputModalities",
|
|
186
198
|
});
|
|
187
199
|
});
|
|
188
200
|
/** @internal */
|
|
@@ -192,6 +204,8 @@ export type ListModelsData$Outbound = {
|
|
|
192
204
|
created: number;
|
|
193
205
|
owned_by: string;
|
|
194
206
|
model_type: string;
|
|
207
|
+
input_modalities: Array<string>;
|
|
208
|
+
output_modalities: Array<string>;
|
|
195
209
|
capabilities: ListModelsCapabilities$Outbound;
|
|
196
210
|
};
|
|
197
211
|
|
|
@@ -206,11 +220,15 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
206
220
|
created: z.number().int(),
|
|
207
221
|
ownedBy: z.string(),
|
|
208
222
|
modelType: ListModelsModelType$outboundSchema,
|
|
223
|
+
inputModalities: z.array(z.string()),
|
|
224
|
+
outputModalities: z.array(z.string()),
|
|
209
225
|
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
210
226
|
}).transform((v) => {
|
|
211
227
|
return remap$(v, {
|
|
212
228
|
ownedBy: "owned_by",
|
|
213
229
|
modelType: "model_type",
|
|
230
|
+
inputModalities: "input_modalities",
|
|
231
|
+
outputModalities: "output_modalities",
|
|
214
232
|
});
|
|
215
233
|
});
|
|
216
234
|
|