@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
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* Set this org's auto policy for an endpoint
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Stores either the existing direct `{ endpoint →
|
|
14
|
+
* 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.
|
|
15
15
|
*
|
|
16
16
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
17
17
|
*/
|
|
@@ -50,7 +50,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
50
50
|
* Set this org's auto policy for an endpoint
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Stores either the existing direct `{ endpoint →
|
|
53
|
+
* 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.
|
|
54
54
|
*
|
|
55
55
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
56
56
|
*/
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.54.
|
|
34
|
+
readonly sdkVersion: "0.54.21";
|
|
35
35
|
readonly genVersion: "2.935.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.54.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.54.21 2.935.1 1.1.0 @meetkai/mka1";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "1.1.0",
|
|
38
|
-
sdkVersion: "0.54.
|
|
38
|
+
sdkVersion: "0.54.21",
|
|
39
39
|
genVersion: "2.935.1",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.54.21 2.935.1 1.1.0 @meetkai/mka1",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.54.
|
|
25
|
+
currentVersion: "0.54.21",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -385,7 +385,7 @@ const usageSandbox_js_1 = require("./tools/usageSandbox.js");
|
|
|
385
385
|
function createMCPServer(deps) {
|
|
386
386
|
const server = new mcp_js_1.McpServer({
|
|
387
387
|
name: "SDK",
|
|
388
|
-
version: "0.54.
|
|
388
|
+
version: "0.54.21",
|
|
389
389
|
});
|
|
390
390
|
const client = new core_js_1.SDKCore({
|
|
391
391
|
bearerAuth: deps.bearerAuth,
|
|
@@ -47,7 +47,7 @@ exports.tool$llmModelsPutOrgAutoModel = {
|
|
|
47
47
|
name: "llm-models-put-org-auto-model",
|
|
48
48
|
description: `Set this org's auto policy for an endpoint
|
|
49
49
|
|
|
50
|
-
Stores either the existing direct \`{ endpoint →
|
|
50
|
+
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.`,
|
|
51
51
|
args,
|
|
52
52
|
tool: async (client, args, ctx) => {
|
|
53
53
|
const [result, apiCall] = await (0, llmModelsPutOrgAutoModel_js_1.llmModelsPutOrgAutoModel)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmModelsPutOrgAutoModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsPutOrgAutoModel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yFAAmF;AACnF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEW,QAAA,6BAA6B,GAAgC;IACxE,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"llmModelsPutOrgAutoModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsPutOrgAutoModel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yFAAmF;AACnF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEW,QAAA,6BAA6B,GAAgC;IACxE,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;kVAEmU;IAChV,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,sDAAwB,EACtD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -36,8 +36,8 @@ export declare const PutOrgAutoModelRequest2$inboundSchema: z.ZodType<PutOrgAuto
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
export type PutOrgAutoModelRequest2$Outbound = {
|
|
38
38
|
policy: string;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
judge_model_id: string;
|
|
40
|
+
candidate_model_ids: Array<string>;
|
|
41
41
|
};
|
|
42
42
|
/** @internal */
|
|
43
43
|
export declare const PutOrgAutoModelRequest2$outboundSchema: z.ZodType<PutOrgAutoModelRequest2$Outbound, z.ZodTypeDef, PutOrgAutoModelRequest2>;
|
|
@@ -47,7 +47,7 @@ export declare function putOrgAutoModelRequest2FromJSON(jsonString: string): Saf
|
|
|
47
47
|
export declare const PutOrgAutoModelRequest1$inboundSchema: z.ZodType<PutOrgAutoModelRequest1, z.ZodTypeDef, unknown>;
|
|
48
48
|
/** @internal */
|
|
49
49
|
export type PutOrgAutoModelRequest1$Outbound = {
|
|
50
|
-
|
|
50
|
+
model_id: string;
|
|
51
51
|
};
|
|
52
52
|
/** @internal */
|
|
53
53
|
export declare const PutOrgAutoModelRequest1$outboundSchema: z.ZodType<PutOrgAutoModelRequest1$Outbound, z.ZodTypeDef, PutOrgAutoModelRequest1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putorgautomodelrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"putorgautomodelrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,uBAAuB,GACvB,uBAAuB,CAAC;AAE5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A+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GACvC,gCAAgC,GAChC,gCAAgC,CAAC;AAErC,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAItB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AACD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -44,6 +44,7 @@ exports.putOrgAutoModelRequest1FromJSON = putOrgAutoModelRequest1FromJSON;
|
|
|
44
44
|
exports.putOrgAutoModelRequestToJSON = putOrgAutoModelRequestToJSON;
|
|
45
45
|
exports.putOrgAutoModelRequestFromJSON = putOrgAutoModelRequestFromJSON;
|
|
46
46
|
const z = __importStar(require("zod/v3"));
|
|
47
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
47
48
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
49
|
exports.Policy = {
|
|
49
50
|
Balanced: "balanced",
|
|
@@ -59,14 +60,24 @@ exports.Policy$outboundSchema = exports.Policy$inboundSchema;
|
|
|
59
60
|
/** @internal */
|
|
60
61
|
exports.PutOrgAutoModelRequest2$inboundSchema = z.object({
|
|
61
62
|
policy: exports.Policy$inboundSchema.default("balanced"),
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
judge_model_id: z.string(),
|
|
64
|
+
candidate_model_ids: z.array(z.string()),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return (0, primitives_js_1.remap)(v, {
|
|
67
|
+
"judge_model_id": "judgeModelId",
|
|
68
|
+
"candidate_model_ids": "candidateModelIds",
|
|
69
|
+
});
|
|
64
70
|
});
|
|
65
71
|
/** @internal */
|
|
66
72
|
exports.PutOrgAutoModelRequest2$outboundSchema = z.object({
|
|
67
73
|
policy: exports.Policy$outboundSchema.default("balanced"),
|
|
68
74
|
judgeModelId: z.string(),
|
|
69
75
|
candidateModelIds: z.array(z.string()),
|
|
76
|
+
}).transform((v) => {
|
|
77
|
+
return (0, primitives_js_1.remap)(v, {
|
|
78
|
+
judgeModelId: "judge_model_id",
|
|
79
|
+
candidateModelIds: "candidate_model_ids",
|
|
80
|
+
});
|
|
70
81
|
});
|
|
71
82
|
function putOrgAutoModelRequest2ToJSON(putOrgAutoModelRequest2) {
|
|
72
83
|
return JSON.stringify(exports.PutOrgAutoModelRequest2$outboundSchema.parse(putOrgAutoModelRequest2));
|
|
@@ -76,11 +87,19 @@ function putOrgAutoModelRequest2FromJSON(jsonString) {
|
|
|
76
87
|
}
|
|
77
88
|
/** @internal */
|
|
78
89
|
exports.PutOrgAutoModelRequest1$inboundSchema = z.object({
|
|
79
|
-
|
|
90
|
+
model_id: z.string(),
|
|
91
|
+
}).transform((v) => {
|
|
92
|
+
return (0, primitives_js_1.remap)(v, {
|
|
93
|
+
"model_id": "modelId",
|
|
94
|
+
});
|
|
80
95
|
});
|
|
81
96
|
/** @internal */
|
|
82
97
|
exports.PutOrgAutoModelRequest1$outboundSchema = z.object({
|
|
83
98
|
modelId: z.string(),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return (0, primitives_js_1.remap)(v, {
|
|
101
|
+
modelId: "model_id",
|
|
102
|
+
});
|
|
84
103
|
});
|
|
85
104
|
function putOrgAutoModelRequest1ToJSON(putOrgAutoModelRequest1) {
|
|
86
105
|
return JSON.stringify(exports.PutOrgAutoModelRequest1$outboundSchema.parse(putOrgAutoModelRequest1));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putorgautomodelrequest.js","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"putorgautomodelrequest.js","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFH,sEAMC;AACD,0EAQC;AAgCD,sEAMC;AACD,0EAQC;AA0BD,oEAMC;AACD,wEAQC;AA1LD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAKpC,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AA0BX,gBAAgB;AACH,QAAA,oBAAoB,GAAmC,CAAC;KAClE,UAAU,CAAC,cAAM,CAAC,CAAC;AACtB,gBAAgB;AACH,QAAA,qBAAqB,GAChC,4BAAoB,CAAC;AAEvB,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,4BAAoB,CAAC,OAAO,CAAC,UAAU,CAAC;IAChD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;QAChC,qBAAqB,EAAE,mBAAmB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE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
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Stores either the existing direct `{ endpoint →
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useLlmModelsPutOrgAutoModelMutation(options?: MutationHookOptions<LlmModelsPutOrgAutoModelMutationData, LlmModelsPutOrgAutoModelMutationError, LlmModelsPutOrgAutoModelMutationVariables>): UseMutationResult<LlmModelsPutOrgAutoModelMutationData, LlmModelsPutOrgAutoModelMutationError, LlmModelsPutOrgAutoModelMutationVariables>;
|
|
23
23
|
export declare function mutationKeyLlmModelsPutOrgAutoModel(): MutationKey;
|
|
@@ -15,7 +15,7 @@ const _context_js_1 = require("./_context.js");
|
|
|
15
15
|
* Set this org's auto policy for an endpoint
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Stores either the existing direct `{ endpoint →
|
|
18
|
+
* 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.
|
|
19
19
|
*/
|
|
20
20
|
function useLlmModelsPutOrgAutoModelMutation(options) {
|
|
21
21
|
const client = (0, _context_js_1.useSDKContext)();
|
|
@@ -111,7 +111,7 @@ export declare class Models extends ClientSDK {
|
|
|
111
111
|
* Set this org's auto policy for an endpoint
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
|
-
* Stores either the existing direct `{ endpoint →
|
|
114
|
+
* 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.
|
|
115
115
|
*/
|
|
116
116
|
putOrgAutoModel(request: operations.PutOrgAutoModelRequest, options?: RequestOptions): Promise<operations.PutOrgAutoModelResponseBody>;
|
|
117
117
|
/**
|
|
@@ -172,7 +172,7 @@ class Models extends sdks_js_1.ClientSDK {
|
|
|
172
172
|
* Set this org's auto policy for an endpoint
|
|
173
173
|
*
|
|
174
174
|
* @remarks
|
|
175
|
-
* Stores either the existing direct `{ endpoint →
|
|
175
|
+
* 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.
|
|
176
176
|
*/
|
|
177
177
|
async putOrgAutoModel(request, options) {
|
|
178
178
|
return (0, fp_js_1.unwrapAsync)((0, llmModelsPutOrgAutoModel_js_1.llmModelsPutOrgAutoModel)(this, request, options));
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* Set this org's auto policy for an endpoint
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Stores either the existing direct `{ endpoint →
|
|
14
|
+
* 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.
|
|
15
15
|
*
|
|
16
16
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
17
17
|
*/
|
|
@@ -14,7 +14,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
14
14
|
* Set this org's auto policy for an endpoint
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Stores either the existing direct `{ endpoint →
|
|
17
|
+
* 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.
|
|
18
18
|
*
|
|
19
19
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
20
20
|
*/
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.54.
|
|
34
|
+
readonly sdkVersion: "0.54.21";
|
|
35
35
|
readonly genVersion: "2.935.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.54.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.54.21 2.935.1 1.1.0 @meetkai/mka1";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "1.1.0",
|
|
34
|
-
sdkVersion: "0.54.
|
|
34
|
+
sdkVersion: "0.54.21",
|
|
35
35
|
genVersion: "2.935.1",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.54.21 2.935.1 1.1.0 @meetkai/mka1",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -382,7 +382,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
|
|
|
382
382
|
export function createMCPServer(deps) {
|
|
383
383
|
const server = new McpServer({
|
|
384
384
|
name: "SDK",
|
|
385
|
-
version: "0.54.
|
|
385
|
+
version: "0.54.21",
|
|
386
386
|
});
|
|
387
387
|
const client = new SDKCore({
|
|
388
388
|
bearerAuth: deps.bearerAuth,
|
|
@@ -11,7 +11,7 @@ export const tool$llmModelsPutOrgAutoModel = {
|
|
|
11
11
|
name: "llm-models-put-org-auto-model",
|
|
12
12
|
description: `Set this org's auto policy for an endpoint
|
|
13
13
|
|
|
14
|
-
Stores either the existing direct \`{ endpoint →
|
|
14
|
+
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.`,
|
|
15
15
|
args,
|
|
16
16
|
tool: async (client, args, ctx) => {
|
|
17
17
|
const [result, apiCall] = await llmModelsPutOrgAutoModel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmModelsPutOrgAutoModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsPutOrgAutoModel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAgC;IACxE,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"llmModelsPutOrgAutoModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsPutOrgAutoModel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAgC;IACxE,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;kVAEmU;IAChV,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,wBAAwB,CACtD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -36,8 +36,8 @@ export declare const PutOrgAutoModelRequest2$inboundSchema: z.ZodType<PutOrgAuto
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
export type PutOrgAutoModelRequest2$Outbound = {
|
|
38
38
|
policy: string;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
judge_model_id: string;
|
|
40
|
+
candidate_model_ids: Array<string>;
|
|
41
41
|
};
|
|
42
42
|
/** @internal */
|
|
43
43
|
export declare const PutOrgAutoModelRequest2$outboundSchema: z.ZodType<PutOrgAutoModelRequest2$Outbound, z.ZodTypeDef, PutOrgAutoModelRequest2>;
|
|
@@ -47,7 +47,7 @@ export declare function putOrgAutoModelRequest2FromJSON(jsonString: string): Saf
|
|
|
47
47
|
export declare const PutOrgAutoModelRequest1$inboundSchema: z.ZodType<PutOrgAutoModelRequest1, z.ZodTypeDef, unknown>;
|
|
48
48
|
/** @internal */
|
|
49
49
|
export type PutOrgAutoModelRequest1$Outbound = {
|
|
50
|
-
|
|
50
|
+
model_id: string;
|
|
51
51
|
};
|
|
52
52
|
/** @internal */
|
|
53
53
|
export declare const PutOrgAutoModelRequest1$outboundSchema: z.ZodType<PutOrgAutoModelRequest1$Outbound, z.ZodTypeDef, PutOrgAutoModelRequest1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putorgautomodelrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"putorgautomodelrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,uBAAuB,GACvB,uBAAuB,CAAC;AAE5B,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AACtB,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OA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tB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GACvC,gCAAgC,GAChC,gCAAgC,CAAC;AAErC,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAItB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AACD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
7
|
export const Policy = {
|
|
7
8
|
Balanced: "balanced",
|
|
@@ -17,14 +18,24 @@ export const Policy$outboundSchema = Policy$inboundSchema;
|
|
|
17
18
|
/** @internal */
|
|
18
19
|
export const PutOrgAutoModelRequest2$inboundSchema = z.object({
|
|
19
20
|
policy: Policy$inboundSchema.default("balanced"),
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
judge_model_id: z.string(),
|
|
22
|
+
candidate_model_ids: z.array(z.string()),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"judge_model_id": "judgeModelId",
|
|
26
|
+
"candidate_model_ids": "candidateModelIds",
|
|
27
|
+
});
|
|
22
28
|
});
|
|
23
29
|
/** @internal */
|
|
24
30
|
export const PutOrgAutoModelRequest2$outboundSchema = z.object({
|
|
25
31
|
policy: Policy$outboundSchema.default("balanced"),
|
|
26
32
|
judgeModelId: z.string(),
|
|
27
33
|
candidateModelIds: z.array(z.string()),
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
judgeModelId: "judge_model_id",
|
|
37
|
+
candidateModelIds: "candidate_model_ids",
|
|
38
|
+
});
|
|
28
39
|
});
|
|
29
40
|
export function putOrgAutoModelRequest2ToJSON(putOrgAutoModelRequest2) {
|
|
30
41
|
return JSON.stringify(PutOrgAutoModelRequest2$outboundSchema.parse(putOrgAutoModelRequest2));
|
|
@@ -34,11 +45,19 @@ export function putOrgAutoModelRequest2FromJSON(jsonString) {
|
|
|
34
45
|
}
|
|
35
46
|
/** @internal */
|
|
36
47
|
export const PutOrgAutoModelRequest1$inboundSchema = z.object({
|
|
37
|
-
|
|
48
|
+
model_id: z.string(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"model_id": "modelId",
|
|
52
|
+
});
|
|
38
53
|
});
|
|
39
54
|
/** @internal */
|
|
40
55
|
export const PutOrgAutoModelRequest1$outboundSchema = z.object({
|
|
41
56
|
modelId: z.string(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
modelId: "model_id",
|
|
60
|
+
});
|
|
42
61
|
});
|
|
43
62
|
export function putOrgAutoModelRequest1ToJSON(putOrgAutoModelRequest1) {
|
|
44
63
|
return JSON.stringify(PutOrgAutoModelRequest1$outboundSchema.parse(putOrgAutoModelRequest1));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putorgautomodelrequest.js","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AA0BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAmC,CAAC;KAClE,UAAU,CAAC,MAAM,CAAC,CAAC;AACtB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAChC,oBAAoB,CAAC;AAEvB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC;IAChD,
|
|
1
|
+
{"version":3,"file":"putorgautomodelrequest.js","sourceRoot":"","sources":["../../../../src/models/components/putorgautomodelrequest.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;AAKjD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AA0BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAmC,CAAC;KAClE,UAAU,CAAC,MAAM,CAAC,CAAC;AACtB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAChC,oBAAoB,CAAC;AAEvB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC;IAChD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,C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AAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -17,7 +17,7 @@ export type LlmModelsPutOrgAutoModelMutationError = SDKError | ResponseValidatio
|
|
|
17
17
|
* Set this org's auto policy for an endpoint
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Stores either the existing direct `{ endpoint →
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useLlmModelsPutOrgAutoModelMutation(options?: MutationHookOptions<LlmModelsPutOrgAutoModelMutationData, LlmModelsPutOrgAutoModelMutationError, LlmModelsPutOrgAutoModelMutationVariables>): UseMutationResult<LlmModelsPutOrgAutoModelMutationData, LlmModelsPutOrgAutoModelMutationError, LlmModelsPutOrgAutoModelMutationVariables>;
|
|
23
23
|
export declare function mutationKeyLlmModelsPutOrgAutoModel(): MutationKey;
|
|
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Set this org's auto policy for an endpoint
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Stores either the existing direct `{ endpoint →
|
|
13
|
+
* 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.
|
|
14
14
|
*/
|
|
15
15
|
export function useLlmModelsPutOrgAutoModelMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
package/dist/esm/sdk/models.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare class Models extends ClientSDK {
|
|
|
111
111
|
* Set this org's auto policy for an endpoint
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
|
-
* Stores either the existing direct `{ endpoint →
|
|
114
|
+
* 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.
|
|
115
115
|
*/
|
|
116
116
|
putOrgAutoModel(request: operations.PutOrgAutoModelRequest, options?: RequestOptions): Promise<operations.PutOrgAutoModelResponseBody>;
|
|
117
117
|
/**
|
package/dist/esm/sdk/models.js
CHANGED
|
@@ -169,7 +169,7 @@ export class Models extends ClientSDK {
|
|
|
169
169
|
* Set this org's auto policy for an endpoint
|
|
170
170
|
*
|
|
171
171
|
* @remarks
|
|
172
|
-
* Stores either the existing direct `{ endpoint →
|
|
172
|
+
* 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.
|
|
173
173
|
*/
|
|
174
174
|
async putOrgAutoModel(request, options) {
|
|
175
175
|
return unwrapAsync(llmModelsPutOrgAutoModel(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Set this org's auto policy for an endpoint
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Stores either the existing direct `{ endpoint →
|
|
32
|
+
* 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.
|
|
33
33
|
*
|
|
34
34
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
35
35
|
*/
|
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.54.
|
|
68
|
+
sdkVersion: "0.54.21",
|
|
69
69
|
genVersion: "2.935.1",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.21 2.935.1 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const tool$llmModelsPutOrgAutoModel: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "llm-models-put-org-auto-model",
|
|
15
15
|
description: `Set this org's auto policy for an endpoint
|
|
16
16
|
|
|
17
|
-
Stores either the existing direct \`{ endpoint →
|
|
17
|
+
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.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await llmModelsPutOrgAutoModel(
|