@meetkai/mka1 0.53.31 → 0.53.32
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 +51 -11
- package/bin/mcp-server.js.map +7 -7
- 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/operations/getmodel.d.ts +29 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +31 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +29 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +31 -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/operations/getmodel.d.ts +29 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +28 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +29 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +28 -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/operations/getmodel.ts +69 -0
- package/src/models/operations/listmodels.ts +73 -0
|
@@ -38,12 +38,39 @@ export const ListModelsModelType$inboundSchema = z.nativeEnum(ListModelsModelTyp
|
|
|
38
38
|
/** @internal */
|
|
39
39
|
export const ListModelsModelType$outboundSchema = ListModelsModelType$inboundSchema;
|
|
40
40
|
/** @internal */
|
|
41
|
+
export const ListModelsCapabilities$inboundSchema = z.object({
|
|
42
|
+
supports_temperature: z.boolean(),
|
|
43
|
+
supports_top_p: z.boolean(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"supports_temperature": "supportsTemperature",
|
|
47
|
+
"supports_top_p": "supportsTopP",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ListModelsCapabilities$outboundSchema = z.object({
|
|
52
|
+
supportsTemperature: z.boolean(),
|
|
53
|
+
supportsTopP: z.boolean(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
supportsTemperature: "supports_temperature",
|
|
57
|
+
supportsTopP: "supports_top_p",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
export function listModelsCapabilitiesToJSON(listModelsCapabilities) {
|
|
61
|
+
return JSON.stringify(ListModelsCapabilities$outboundSchema.parse(listModelsCapabilities));
|
|
62
|
+
}
|
|
63
|
+
export function listModelsCapabilitiesFromJSON(jsonString) {
|
|
64
|
+
return safeParse(jsonString, (x) => ListModelsCapabilities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListModelsCapabilities' from JSON`);
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
41
67
|
export const ListModelsData$inboundSchema = z.object({
|
|
42
68
|
id: z.string(),
|
|
43
69
|
object: z.literal("model"),
|
|
44
70
|
created: z.number().int(),
|
|
45
71
|
owned_by: z.string(),
|
|
46
72
|
model_type: ListModelsModelType$inboundSchema,
|
|
73
|
+
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
47
74
|
}).transform((v) => {
|
|
48
75
|
return remap$(v, {
|
|
49
76
|
"owned_by": "ownedBy",
|
|
@@ -57,6 +84,7 @@ export const ListModelsData$outboundSchema = z.object({
|
|
|
57
84
|
created: z.number().int(),
|
|
58
85
|
ownedBy: z.string(),
|
|
59
86
|
modelType: ListModelsModelType$outboundSchema,
|
|
87
|
+
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
60
88
|
}).transform((v) => {
|
|
61
89
|
return remap$(v, {
|
|
62
90
|
ownedBy: "owned_by",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listmodels.js","sourceRoot":"","sources":["../../../../src/models/operations/listmodels.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"listmodels.js","sourceRoot":"","sources":["../../../../src/models/operations/listmodels.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;CACtB,CAAC;AAqCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QA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CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC,CAAC;CAC1D,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC,CAAC;CAC3D,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.53.
|
|
68
|
+
sdkVersion: "0.53.32",
|
|
69
69
|
genVersion: "2.932.9",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.53.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.53.32 2.932.9 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -26,6 +26,20 @@ export const ModelType = {
|
|
|
26
26
|
} as const;
|
|
27
27
|
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Curated public sampling capabilities for this model.
|
|
31
|
+
*/
|
|
32
|
+
export type Capabilities = {
|
|
33
|
+
/**
|
|
34
|
+
* Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
|
|
35
|
+
*/
|
|
36
|
+
supportsTemperature: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
|
|
39
|
+
*/
|
|
40
|
+
supportsTopP: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
29
43
|
/**
|
|
30
44
|
* OK
|
|
31
45
|
*/
|
|
@@ -35,6 +49,10 @@ export type GetModelResponseBody = {
|
|
|
35
49
|
created: number;
|
|
36
50
|
ownedBy: string;
|
|
37
51
|
modelType: ModelType;
|
|
52
|
+
/**
|
|
53
|
+
* Curated public sampling capabilities for this model.
|
|
54
|
+
*/
|
|
55
|
+
capabilities: Capabilities;
|
|
38
56
|
};
|
|
39
57
|
|
|
40
58
|
/** @internal */
|
|
@@ -94,6 +112,54 @@ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
|
94
112
|
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
95
113
|
ModelType$inboundSchema;
|
|
96
114
|
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const Capabilities$inboundSchema: z.ZodType<
|
|
117
|
+
Capabilities,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.object({
|
|
121
|
+
supports_temperature: z.boolean(),
|
|
122
|
+
supports_top_p: z.boolean(),
|
|
123
|
+
}).transform((v) => {
|
|
124
|
+
return remap$(v, {
|
|
125
|
+
"supports_temperature": "supportsTemperature",
|
|
126
|
+
"supports_top_p": "supportsTopP",
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
/** @internal */
|
|
130
|
+
export type Capabilities$Outbound = {
|
|
131
|
+
supports_temperature: boolean;
|
|
132
|
+
supports_top_p: boolean;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const Capabilities$outboundSchema: z.ZodType<
|
|
137
|
+
Capabilities$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
Capabilities
|
|
140
|
+
> = z.object({
|
|
141
|
+
supportsTemperature: z.boolean(),
|
|
142
|
+
supportsTopP: z.boolean(),
|
|
143
|
+
}).transform((v) => {
|
|
144
|
+
return remap$(v, {
|
|
145
|
+
supportsTemperature: "supports_temperature",
|
|
146
|
+
supportsTopP: "supports_top_p",
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
export function capabilitiesToJSON(capabilities: Capabilities): string {
|
|
151
|
+
return JSON.stringify(Capabilities$outboundSchema.parse(capabilities));
|
|
152
|
+
}
|
|
153
|
+
export function capabilitiesFromJSON(
|
|
154
|
+
jsonString: string,
|
|
155
|
+
): SafeParseResult<Capabilities, SDKValidationError> {
|
|
156
|
+
return safeParse(
|
|
157
|
+
jsonString,
|
|
158
|
+
(x) => Capabilities$inboundSchema.parse(JSON.parse(x)),
|
|
159
|
+
`Failed to parse 'Capabilities' from JSON`,
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
97
163
|
/** @internal */
|
|
98
164
|
export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
99
165
|
GetModelResponseBody,
|
|
@@ -105,6 +171,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
105
171
|
created: z.number().int(),
|
|
106
172
|
owned_by: z.string(),
|
|
107
173
|
model_type: ModelType$inboundSchema,
|
|
174
|
+
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
108
175
|
}).transform((v) => {
|
|
109
176
|
return remap$(v, {
|
|
110
177
|
"owned_by": "ownedBy",
|
|
@@ -118,6 +185,7 @@ export type GetModelResponseBody$Outbound = {
|
|
|
118
185
|
created: number;
|
|
119
186
|
owned_by: string;
|
|
120
187
|
model_type: string;
|
|
188
|
+
capabilities: Capabilities$Outbound;
|
|
121
189
|
};
|
|
122
190
|
|
|
123
191
|
/** @internal */
|
|
@@ -131,6 +199,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
131
199
|
created: z.number().int(),
|
|
132
200
|
ownedBy: z.string(),
|
|
133
201
|
modelType: ModelType$outboundSchema,
|
|
202
|
+
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
134
203
|
}).transform((v) => {
|
|
135
204
|
return remap$(v, {
|
|
136
205
|
ownedBy: "owned_by",
|
|
@@ -25,12 +25,30 @@ export const ListModelsModelType = {
|
|
|
25
25
|
} as const;
|
|
26
26
|
export type ListModelsModelType = ClosedEnum<typeof ListModelsModelType>;
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Curated public sampling capabilities for this model.
|
|
30
|
+
*/
|
|
31
|
+
export type ListModelsCapabilities = {
|
|
32
|
+
/**
|
|
33
|
+
* Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
|
|
34
|
+
*/
|
|
35
|
+
supportsTemperature: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
|
|
38
|
+
*/
|
|
39
|
+
supportsTopP: boolean;
|
|
40
|
+
};
|
|
41
|
+
|
|
28
42
|
export type ListModelsData = {
|
|
29
43
|
id: string;
|
|
30
44
|
object: "model";
|
|
31
45
|
created: number;
|
|
32
46
|
ownedBy: string;
|
|
33
47
|
modelType: ListModelsModelType;
|
|
48
|
+
/**
|
|
49
|
+
* Curated public sampling capabilities for this model.
|
|
50
|
+
*/
|
|
51
|
+
capabilities: ListModelsCapabilities;
|
|
34
52
|
};
|
|
35
53
|
|
|
36
54
|
/**
|
|
@@ -97,6 +115,58 @@ export const ListModelsModelType$outboundSchema: z.ZodNativeEnum<
|
|
|
97
115
|
typeof ListModelsModelType
|
|
98
116
|
> = ListModelsModelType$inboundSchema;
|
|
99
117
|
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const ListModelsCapabilities$inboundSchema: z.ZodType<
|
|
120
|
+
ListModelsCapabilities,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
supports_temperature: z.boolean(),
|
|
125
|
+
supports_top_p: z.boolean(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
"supports_temperature": "supportsTemperature",
|
|
129
|
+
"supports_top_p": "supportsTopP",
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type ListModelsCapabilities$Outbound = {
|
|
134
|
+
supports_temperature: boolean;
|
|
135
|
+
supports_top_p: boolean;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const ListModelsCapabilities$outboundSchema: z.ZodType<
|
|
140
|
+
ListModelsCapabilities$Outbound,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
ListModelsCapabilities
|
|
143
|
+
> = z.object({
|
|
144
|
+
supportsTemperature: z.boolean(),
|
|
145
|
+
supportsTopP: z.boolean(),
|
|
146
|
+
}).transform((v) => {
|
|
147
|
+
return remap$(v, {
|
|
148
|
+
supportsTemperature: "supports_temperature",
|
|
149
|
+
supportsTopP: "supports_top_p",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export function listModelsCapabilitiesToJSON(
|
|
154
|
+
listModelsCapabilities: ListModelsCapabilities,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
ListModelsCapabilities$outboundSchema.parse(listModelsCapabilities),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export function listModelsCapabilitiesFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<ListModelsCapabilities, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => ListModelsCapabilities$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'ListModelsCapabilities' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
100
170
|
/** @internal */
|
|
101
171
|
export const ListModelsData$inboundSchema: z.ZodType<
|
|
102
172
|
ListModelsData,
|
|
@@ -108,6 +178,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
108
178
|
created: z.number().int(),
|
|
109
179
|
owned_by: z.string(),
|
|
110
180
|
model_type: ListModelsModelType$inboundSchema,
|
|
181
|
+
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
111
182
|
}).transform((v) => {
|
|
112
183
|
return remap$(v, {
|
|
113
184
|
"owned_by": "ownedBy",
|
|
@@ -121,6 +192,7 @@ export type ListModelsData$Outbound = {
|
|
|
121
192
|
created: number;
|
|
122
193
|
owned_by: string;
|
|
123
194
|
model_type: string;
|
|
195
|
+
capabilities: ListModelsCapabilities$Outbound;
|
|
124
196
|
};
|
|
125
197
|
|
|
126
198
|
/** @internal */
|
|
@@ -134,6 +206,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
134
206
|
created: z.number().int(),
|
|
135
207
|
ownedBy: z.string(),
|
|
136
208
|
modelType: ListModelsModelType$outboundSchema,
|
|
209
|
+
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
137
210
|
}).transform((v) => {
|
|
138
211
|
return remap$(v, {
|
|
139
212
|
ownedBy: "owned_by",
|