@meetkai/mka1 0.54.20 → 0.54.21
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 +28 -9
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/funcs/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/commonjs/funcs/llmModelsPutOrgAutoModel.js +1 -1
- 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/mcp-server/tools/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsPutOrgAutoModel.js.map +1 -1
- package/dist/commonjs/models/components/putorgautomodelrequest.d.ts +3 -3
- package/dist/commonjs/models/components/putorgautomodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/putorgautomodelrequest.js +22 -3
- package/dist/commonjs/models/components/putorgautomodelrequest.js.map +1 -1
- package/dist/commonjs/react-query/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/commonjs/react-query/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.js +1 -1
- package/dist/esm/funcs/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/esm/funcs/llmModelsPutOrgAutoModel.js +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/mcp-server/tools/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/esm/mcp-server/tools/llmModelsPutOrgAutoModel.js.map +1 -1
- package/dist/esm/models/components/putorgautomodelrequest.d.ts +3 -3
- package/dist/esm/models/components/putorgautomodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/putorgautomodelrequest.js +22 -3
- package/dist/esm/models/components/putorgautomodelrequest.js.map +1 -1
- package/dist/esm/react-query/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/esm/react-query/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/esm/sdk/models.d.ts +1 -1
- package/dist/esm/sdk/models.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmModelsPutOrgAutoModel.ts +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/mcp-server/tools/llmModelsPutOrgAutoModel.ts +1 -1
- package/src/models/components/putorgautomodelrequest.ts +25 -6
- package/src/react-query/llmModelsPutOrgAutoModel.ts +1 -1
- package/src/sdk/models.ts +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -53,14 +54,19 @@ export const PutOrgAutoModelRequest2$inboundSchema: z.ZodType<
|
|
|
53
54
|
unknown
|
|
54
55
|
> = z.object({
|
|
55
56
|
policy: Policy$inboundSchema.default("balanced"),
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
judge_model_id: z.string(),
|
|
58
|
+
candidate_model_ids: z.array(z.string()),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
"judge_model_id": "judgeModelId",
|
|
62
|
+
"candidate_model_ids": "candidateModelIds",
|
|
63
|
+
});
|
|
58
64
|
});
|
|
59
65
|
/** @internal */
|
|
60
66
|
export type PutOrgAutoModelRequest2$Outbound = {
|
|
61
67
|
policy: string;
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
judge_model_id: string;
|
|
69
|
+
candidate_model_ids: Array<string>;
|
|
64
70
|
};
|
|
65
71
|
|
|
66
72
|
/** @internal */
|
|
@@ -72,6 +78,11 @@ export const PutOrgAutoModelRequest2$outboundSchema: z.ZodType<
|
|
|
72
78
|
policy: Policy$outboundSchema.default("balanced"),
|
|
73
79
|
judgeModelId: z.string(),
|
|
74
80
|
candidateModelIds: z.array(z.string()),
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return remap$(v, {
|
|
83
|
+
judgeModelId: "judge_model_id",
|
|
84
|
+
candidateModelIds: "candidate_model_ids",
|
|
85
|
+
});
|
|
75
86
|
});
|
|
76
87
|
|
|
77
88
|
export function putOrgAutoModelRequest2ToJSON(
|
|
@@ -97,11 +108,15 @@ export const PutOrgAutoModelRequest1$inboundSchema: z.ZodType<
|
|
|
97
108
|
z.ZodTypeDef,
|
|
98
109
|
unknown
|
|
99
110
|
> = z.object({
|
|
100
|
-
|
|
111
|
+
model_id: z.string(),
|
|
112
|
+
}).transform((v) => {
|
|
113
|
+
return remap$(v, {
|
|
114
|
+
"model_id": "modelId",
|
|
115
|
+
});
|
|
101
116
|
});
|
|
102
117
|
/** @internal */
|
|
103
118
|
export type PutOrgAutoModelRequest1$Outbound = {
|
|
104
|
-
|
|
119
|
+
model_id: string;
|
|
105
120
|
};
|
|
106
121
|
|
|
107
122
|
/** @internal */
|
|
@@ -111,6 +126,10 @@ export const PutOrgAutoModelRequest1$outboundSchema: z.ZodType<
|
|
|
111
126
|
PutOrgAutoModelRequest1
|
|
112
127
|
> = z.object({
|
|
113
128
|
modelId: z.string(),
|
|
129
|
+
}).transform((v) => {
|
|
130
|
+
return remap$(v, {
|
|
131
|
+
modelId: "model_id",
|
|
132
|
+
});
|
|
114
133
|
});
|
|
115
134
|
|
|
116
135
|
export function putOrgAutoModelRequest1ToJSON(
|
|
@@ -48,7 +48,7 @@ export type LlmModelsPutOrgAutoModelMutationError =
|
|
|
48
48
|
* Set this org's auto policy for an endpoint
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* Stores either the existing direct `{ endpoint →
|
|
51
|
+
* Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
52
52
|
*/
|
|
53
53
|
export function useLlmModelsPutOrgAutoModelMutation(
|
|
54
54
|
options?: MutationHookOptions<
|
package/src/sdk/models.ts
CHANGED
|
@@ -287,7 +287,7 @@ export class Models extends ClientSDK {
|
|
|
287
287
|
* Set this org's auto policy for an endpoint
|
|
288
288
|
*
|
|
289
289
|
* @remarks
|
|
290
|
-
* Stores either the existing direct `{ endpoint →
|
|
290
|
+
* Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
291
291
|
*/
|
|
292
292
|
async putOrgAutoModel(
|
|
293
293
|
request: operations.PutOrgAutoModelRequest,
|