@orq-ai/node 3.8.0-rc.32 → 3.8.0-rc.34
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/FUNCTIONS.md +19 -3
- package/README.md +165 -91
- package/bin/mcp-server.js +218 -1588
- package/bin/mcp-server.js.map +32 -38
- package/docs/sdks/knowledge/README.md +1 -1
- package/docs/sdks/orq/README.md +0 -138
- package/funcs/knowledgeCreateChunks.d.ts +1 -1
- package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +1 -5
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createchunk.d.ts +28 -28
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +33 -35
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/deploymentgetconfig.d.ts +15 -15
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +18 -18
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/sdk/knowledge.d.ts +1 -1
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/sdk.d.ts +1 -16
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -21
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -5
- package/src/models/operations/createchunk.ts +44 -54
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/deploymentgetconfig.ts +24 -30
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +1 -37
- package/funcs/getV2ModelsLitellmModels.d.ts +0 -17
- package/funcs/getV2ModelsLitellmModels.d.ts.map +0 -1
- package/funcs/getV2ModelsLitellmModels.js +0 -105
- package/funcs/getV2ModelsLitellmModels.js.map +0 -1
- package/funcs/postV2ModelsLitellmImport.d.ts +0 -17
- package/funcs/postV2ModelsLitellmImport.d.ts.map +0 -1
- package/funcs/postV2ModelsLitellmImport.js +0 -117
- package/funcs/postV2ModelsLitellmImport.js.map +0 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +0 -3
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +0 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.js +0 -26
- package/mcp-server/tools/getV2ModelsLitellmModels.js.map +0 -1
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +0 -9
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +0 -1
- package/mcp-server/tools/postV2ModelsLitellmImport.js +0 -65
- package/mcp-server/tools/postV2ModelsLitellmImport.js.map +0 -1
- package/models/operations/getv2modelslitellmmodels.d.ts +0 -185
- package/models/operations/getv2modelslitellmmodels.d.ts.map +0 -1
- package/models/operations/getv2modelslitellmmodels.js +0 -349
- package/models/operations/getv2modelslitellmmodels.js.map +0 -1
- package/models/operations/postv2modelslitellmimport.d.ts +0 -1333
- package/models/operations/postv2modelslitellmimport.d.ts.map +0 -1
- package/models/operations/postv2modelslitellmimport.js +0 -1400
- package/models/operations/postv2modelslitellmimport.js.map +0 -1
- package/src/funcs/getV2ModelsLitellmModels.ts +0 -143
- package/src/funcs/postV2ModelsLitellmImport.ts +0 -167
- package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +0 -30
- package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +0 -38
- package/src/models/operations/getv2modelslitellmmodels.ts +0 -530
- package/src/models/operations/postv2modelslitellmimport.ts +0 -2408
|
@@ -2674,8 +2674,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2674
2674
|
> = z.object({
|
|
2675
2675
|
_id: z.string(),
|
|
2676
2676
|
description: z.string(),
|
|
2677
|
-
created: z.string().default("2025-06-
|
|
2678
|
-
updated: z.string().default("2025-06-
|
|
2677
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
2678
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
2679
2679
|
guardrail_config: z.union([
|
|
2680
2680
|
z.lazy(() =>
|
|
2681
2681
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2717,8 +2717,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2717
2717
|
> = z.object({
|
|
2718
2718
|
id: z.string(),
|
|
2719
2719
|
description: z.string(),
|
|
2720
|
-
created: z.string().default("2025-06-
|
|
2721
|
-
updated: z.string().default("2025-06-
|
|
2720
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
2721
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
2722
2722
|
guardrailConfig: z.union([
|
|
2723
2723
|
z.lazy(() =>
|
|
2724
2724
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -3139,8 +3139,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3139
3139
|
> = z.object({
|
|
3140
3140
|
_id: z.string(),
|
|
3141
3141
|
description: z.string(),
|
|
3142
|
-
created: z.string().default("2025-06-
|
|
3143
|
-
updated: z.string().default("2025-06-
|
|
3142
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3143
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3144
3144
|
guardrail_config: z.union([
|
|
3145
3145
|
z.lazy(() =>
|
|
3146
3146
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -3188,8 +3188,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
3188
3188
|
> = z.object({
|
|
3189
3189
|
id: z.string(),
|
|
3190
3190
|
description: z.string(),
|
|
3191
|
-
created: z.string().default("2025-06-
|
|
3192
|
-
updated: z.string().default("2025-06-
|
|
3191
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3192
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3193
3193
|
guardrailConfig: z.union([
|
|
3194
3194
|
z.lazy(() =>
|
|
3195
3195
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3579,8 +3579,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3579
3579
|
> = z.object({
|
|
3580
3580
|
_id: z.string(),
|
|
3581
3581
|
description: z.string(),
|
|
3582
|
-
created: z.string().default("2025-06-
|
|
3583
|
-
updated: z.string().default("2025-06-
|
|
3582
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3583
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3584
3584
|
guardrail_config: z.union([
|
|
3585
3585
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3586
3586
|
z.lazy(() =>
|
|
@@ -3620,8 +3620,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3620
3620
|
> = z.object({
|
|
3621
3621
|
id: z.string(),
|
|
3622
3622
|
description: z.string(),
|
|
3623
|
-
created: z.string().default("2025-06-
|
|
3624
|
-
updated: z.string().default("2025-06-
|
|
3623
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3624
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3625
3625
|
guardrailConfig: z.union([
|
|
3626
3626
|
z.lazy(() =>
|
|
3627
3627
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -3979,8 +3979,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3979
3979
|
> = z.object({
|
|
3980
3980
|
_id: z.string(),
|
|
3981
3981
|
description: z.string(),
|
|
3982
|
-
created: z.string().default("2025-06-
|
|
3983
|
-
updated: z.string().default("2025-06-
|
|
3982
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3983
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
3984
3984
|
guardrail_config: z.union([
|
|
3985
3985
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3986
3986
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4020,8 +4020,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
4020
4020
|
> = z.object({
|
|
4021
4021
|
id: z.string(),
|
|
4022
4022
|
description: z.string(),
|
|
4023
|
-
created: z.string().default("2025-06-
|
|
4024
|
-
updated: z.string().default("2025-06-
|
|
4023
|
+
created: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
4024
|
+
updated: z.string().default("2025-06-18T09:16:54.289Z"),
|
|
4025
4025
|
guardrailConfig: z.union([
|
|
4026
4026
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
4027
4027
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
package/src/sdk/knowledge.ts
CHANGED
|
@@ -198,7 +198,7 @@ export class Knowledge extends ClientSDK {
|
|
|
198
198
|
async createChunks(
|
|
199
199
|
request: operations.CreateChunkRequest,
|
|
200
200
|
options?: RequestOptions,
|
|
201
|
-
): Promise<Array<operations.
|
|
201
|
+
): Promise<Array<operations.ResponseBody>> {
|
|
202
202
|
return unwrapAsync(knowledgeCreateChunks(
|
|
203
203
|
this,
|
|
204
204
|
request,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { postV2ModelsLitellmImport } from "../funcs/postV2ModelsLitellmImport.js";
|
|
7
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
10
6
|
import { Contacts } from "./contacts.js";
|
|
11
7
|
import { Datasets } from "./datasets.js";
|
|
12
8
|
import { Deployments } from "./deployments.js";
|
|
@@ -68,36 +64,4 @@ export class Orq extends ClientSDK {
|
|
|
68
64
|
get evals(): Evals {
|
|
69
65
|
return (this._evals ??= new Evals(this._options));
|
|
70
66
|
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Get available models from LiteLLM
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* Fetches all available models from the configured LiteLLM instance
|
|
77
|
-
*/
|
|
78
|
-
async getV2ModelsLitellmModels(
|
|
79
|
-
options?: RequestOptions,
|
|
80
|
-
): Promise<Array<operations.ResponseBody>> {
|
|
81
|
-
return unwrapAsync(getV2ModelsLitellmModels(
|
|
82
|
-
this,
|
|
83
|
-
options,
|
|
84
|
-
));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Import models from LiteLLM
|
|
89
|
-
*
|
|
90
|
-
* @remarks
|
|
91
|
-
* Imports selected models from LiteLLM instance into the model garden
|
|
92
|
-
*/
|
|
93
|
-
async postV2ModelsLitellmImport(
|
|
94
|
-
request?: Array<operations.RequestBody> | undefined,
|
|
95
|
-
options?: RequestOptions,
|
|
96
|
-
): Promise<Array<operations.PostV2ModelsLitellmImportResponseBody>> {
|
|
97
|
-
return unwrapAsync(postV2ModelsLitellmImport(
|
|
98
|
-
this,
|
|
99
|
-
request,
|
|
100
|
-
options,
|
|
101
|
-
));
|
|
102
|
-
}
|
|
103
67
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { APIPromise } from "../types/async.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
/**
|
|
11
|
-
* Get available models from LiteLLM
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* Fetches all available models from the configured LiteLLM instance
|
|
15
|
-
*/
|
|
16
|
-
export declare function getV2ModelsLitellmModels(client: OrqCore, options?: RequestOptions): APIPromise<Result<Array<operations.ResponseBody>, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
-
//# sourceMappingURL=getV2ModelsLitellmModels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getV2ModelsLitellmModels.d.ts","sourceRoot":"","sources":["../src/funcs/getV2ModelsLitellmModels.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,EAC5B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getV2ModelsLitellmModels = getV2ModelsLitellmModels;
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
-
const security_js_1 = require("../lib/security.js");
|
|
44
|
-
const url_js_1 = require("../lib/url.js");
|
|
45
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
46
|
-
const async_js_1 = require("../types/async.js");
|
|
47
|
-
/**
|
|
48
|
-
* Get available models from LiteLLM
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* Fetches all available models from the configured LiteLLM instance
|
|
52
|
-
*/
|
|
53
|
-
function getV2ModelsLitellmModels(client, options) {
|
|
54
|
-
return new async_js_1.APIPromise($do(client, options));
|
|
55
|
-
}
|
|
56
|
-
async function $do(client, options) {
|
|
57
|
-
const path = (0, url_js_1.pathToFunc)("/v2/models/litellm/models")();
|
|
58
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
59
|
-
Accept: "application/json",
|
|
60
|
-
}));
|
|
61
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
62
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
63
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
64
|
-
const context = {
|
|
65
|
-
options: client._options,
|
|
66
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
67
|
-
operationID: "get_/v2/models/litellm/models",
|
|
68
|
-
oAuth2Scopes: [],
|
|
69
|
-
resolvedSecurity: requestSecurity,
|
|
70
|
-
securitySource: client._options.apiKey,
|
|
71
|
-
retryConfig: options?.retries
|
|
72
|
-
|| client._options.retryConfig
|
|
73
|
-
|| { strategy: "none" },
|
|
74
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
75
|
-
};
|
|
76
|
-
const requestRes = client._createRequest(context, {
|
|
77
|
-
security: requestSecurity,
|
|
78
|
-
method: "GET",
|
|
79
|
-
baseURL: options?.serverURL,
|
|
80
|
-
path: path,
|
|
81
|
-
headers: headers,
|
|
82
|
-
userAgent: client._options.userAgent,
|
|
83
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
84
|
-
}, options);
|
|
85
|
-
if (!requestRes.ok) {
|
|
86
|
-
return [requestRes, { status: "invalid" }];
|
|
87
|
-
}
|
|
88
|
-
const req = requestRes.value;
|
|
89
|
-
const doResult = await client._do(req, {
|
|
90
|
-
context,
|
|
91
|
-
errorCodes: ["4XX", "5XX"],
|
|
92
|
-
retryConfig: context.retryConfig,
|
|
93
|
-
retryCodes: context.retryCodes,
|
|
94
|
-
});
|
|
95
|
-
if (!doResult.ok) {
|
|
96
|
-
return [doResult, { status: "request-error", request: req }];
|
|
97
|
-
}
|
|
98
|
-
const response = doResult.value;
|
|
99
|
-
const [result] = await M.match(M.json(200, z.array(operations.ResponseBody$inboundSchema)), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
100
|
-
if (!result.ok) {
|
|
101
|
-
return [result, { status: "complete", request: req, response }];
|
|
102
|
-
}
|
|
103
|
-
return [result, { status: "complete", request: req, response }];
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=getV2ModelsLitellmModels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getV2ModelsLitellmModels.js","sourceRoot":"","sources":["../src/funcs/getV2ModelsLitellmModels.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,4DAoBC;AA/CD,uCAAyB;AAEzB,sDAAwC;AACxC,wDAAkD;AAElD,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,wBAAwB,CACtC,MAAe,EACf,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAwB;IAiBxB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,2BAA2B,CAAC,EAAE,CAAC;IAEvD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAA,0BAAU,EAAC;QACrC,MAAM,EAAE,kBAAkB;KAC3B,CAAC,CAAC,CAAC;IAEJ,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChE,MAAM,aAAa,GAAG,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACrE,MAAM,eAAe,GAAG,IAAA,mCAAqB,EAAC,aAAa,CAAC,CAAC;IAE7D,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,MAAM,CAAC,QAAQ;QACxB,OAAO,EAAE,OAAO,EAAE,SAAS,IAAI,MAAM,CAAC,QAAQ,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Ae,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,EAC3D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { APIPromise } from "../types/async.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
/**
|
|
11
|
-
* Import models from LiteLLM
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* Imports selected models from LiteLLM instance into the model garden
|
|
15
|
-
*/
|
|
16
|
-
export declare function postV2ModelsLitellmImport(client: OrqCore, request?: Array<operations.RequestBody> | undefined, options?: RequestOptions): APIPromise<Result<Array<operations.PostV2ModelsLitellmImportResponseBody>, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
-
//# sourceMappingURL=postV2ModelsLitellmImport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postV2ModelsLitellmImport.d.ts","sourceRoot":"","sources":["../src/funcs/postV2ModelsLitellmImport.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,SAAS,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,UAAU,CAAC,qCAAqC,CAAC,EACrD,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.postV2ModelsLitellmImport = postV2ModelsLitellmImport;
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
|
-
const async_js_1 = require("../types/async.js");
|
|
49
|
-
/**
|
|
50
|
-
* Import models from LiteLLM
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* Imports selected models from LiteLLM instance into the model garden
|
|
54
|
-
*/
|
|
55
|
-
function postV2ModelsLitellmImport(client, request, options) {
|
|
56
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
-
}
|
|
58
|
-
async function $do(client, request, options) {
|
|
59
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.array(operations.RequestBody$outboundSchema).optional().parse(value), "Input validation failed");
|
|
60
|
-
if (!parsed.ok) {
|
|
61
|
-
return [parsed, { status: "invalid" }];
|
|
62
|
-
}
|
|
63
|
-
const payload = parsed.value;
|
|
64
|
-
const body = payload === undefined
|
|
65
|
-
? null
|
|
66
|
-
: (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
67
|
-
const path = (0, url_js_1.pathToFunc)("/v2/models/litellm/import")();
|
|
68
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
69
|
-
"Content-Type": "application/json",
|
|
70
|
-
Accept: "application/json",
|
|
71
|
-
}));
|
|
72
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
73
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
74
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
75
|
-
const context = {
|
|
76
|
-
options: client._options,
|
|
77
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78
|
-
operationID: "post_/v2/models/litellm/import",
|
|
79
|
-
oAuth2Scopes: [],
|
|
80
|
-
resolvedSecurity: requestSecurity,
|
|
81
|
-
securitySource: client._options.apiKey,
|
|
82
|
-
retryConfig: options?.retries
|
|
83
|
-
|| client._options.retryConfig
|
|
84
|
-
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
86
|
-
};
|
|
87
|
-
const requestRes = client._createRequest(context, {
|
|
88
|
-
security: requestSecurity,
|
|
89
|
-
method: "POST",
|
|
90
|
-
baseURL: options?.serverURL,
|
|
91
|
-
path: path,
|
|
92
|
-
headers: headers,
|
|
93
|
-
body: body,
|
|
94
|
-
userAgent: client._options.userAgent,
|
|
95
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
96
|
-
}, options);
|
|
97
|
-
if (!requestRes.ok) {
|
|
98
|
-
return [requestRes, { status: "invalid" }];
|
|
99
|
-
}
|
|
100
|
-
const req = requestRes.value;
|
|
101
|
-
const doResult = await client._do(req, {
|
|
102
|
-
context,
|
|
103
|
-
errorCodes: ["4XX", "5XX"],
|
|
104
|
-
retryConfig: context.retryConfig,
|
|
105
|
-
retryCodes: context.retryCodes,
|
|
106
|
-
});
|
|
107
|
-
if (!doResult.ok) {
|
|
108
|
-
return [doResult, { status: "request-error", request: req }];
|
|
109
|
-
}
|
|
110
|
-
const response = doResult.value;
|
|
111
|
-
const [result] = await M.match(M.json(200, z.array(operations.PostV2ModelsLitellmImportResponseBody$inboundSchema)), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
112
|
-
if (!result.ok) {
|
|
113
|
-
return [result, { status: "complete", request: req, response }];
|
|
114
|
-
}
|
|
115
|
-
return [result, { status: "complete", request: req, response }];
|
|
116
|
-
}
|
|
117
|
-
//# sourceMappingURL=postV2ModelsLitellmImport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postV2ModelsLitellmImport.js","sourceRoot":"","sources":["../src/funcs/postV2ModelsLitellmImport.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,8DAsBC;AAnDD,uCAAyB;AAEzB,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,yBAAyB,CACvC,MAAe,EACf,OAAmD,EACnD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAmD,EACnD,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACxE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,OAAO,KAAK,SAAS;QAChC,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEnD,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,2B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AAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getV2ModelsLitellmModels.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/getV2ModelsLitellmModels.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,6BAA6B,EAAE,cAsB3C,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.tool$getV2ModelsLitellmModels = void 0;
|
|
7
|
-
const getV2ModelsLitellmModels_js_1 = require("../../funcs/getV2ModelsLitellmModels.js");
|
|
8
|
-
const tools_js_1 = require("../tools.js");
|
|
9
|
-
exports.tool$getV2ModelsLitellmModels = {
|
|
10
|
-
name: "get-v2-models-litellm-models",
|
|
11
|
-
description: `Get available models from LiteLLM
|
|
12
|
-
|
|
13
|
-
Fetches all available models from the configured LiteLLM instance`,
|
|
14
|
-
tool: async (client, ctx) => {
|
|
15
|
-
const [result, apiCall] = await (0, getV2ModelsLitellmModels_js_1.getV2ModelsLitellmModels)(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
16
|
-
if (!result.ok) {
|
|
17
|
-
return {
|
|
18
|
-
content: [{ type: "text", text: result.error.message }],
|
|
19
|
-
isError: true,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const value = result.value;
|
|
23
|
-
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=getV2ModelsLitellmModels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getV2ModelsLitellmModels.js","sourceRoot":"","sources":["../../src/mcp-server/tools/getV2ModelsLitellmModels.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yFAAmF;AACnF,0CAA2D;AAE9C,QAAA,6BAA6B,GAAmB;IAC3D,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE;;kEAEmD;IAChE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;QAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,sDAAwB,EACtD,MAAM,EACN,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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import * as operations from "../../models/operations/index.js";
|
|
3
|
-
import { ToolDefinition } from "../tools.js";
|
|
4
|
-
declare const args: {
|
|
5
|
-
request: z.ZodOptional<z.ZodArray<z.ZodType<operations.RequestBody, z.ZodTypeDef, unknown>, "many">>;
|
|
6
|
-
};
|
|
7
|
-
export declare const tool$postV2ModelsLitellmImport: ToolDefinition<typeof args>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=postV2ModelsLitellmImport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postV2ModelsLitellmImport.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/postV2ModelsLitellmImport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBtE,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tool$postV2ModelsLitellmImport = void 0;
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
|
-
const postV2ModelsLitellmImport_js_1 = require("../../funcs/postV2ModelsLitellmImport.js");
|
|
42
|
-
const operations = __importStar(require("../../models/operations/index.js"));
|
|
43
|
-
const tools_js_1 = require("../tools.js");
|
|
44
|
-
const args = {
|
|
45
|
-
request: z.array(operations.RequestBody$inboundSchema).optional(),
|
|
46
|
-
};
|
|
47
|
-
exports.tool$postV2ModelsLitellmImport = {
|
|
48
|
-
name: "post-v2-models-litellm-import",
|
|
49
|
-
description: `Import models from LiteLLM
|
|
50
|
-
|
|
51
|
-
Imports selected models from LiteLLM instance into the model garden`,
|
|
52
|
-
args,
|
|
53
|
-
tool: async (client, args, ctx) => {
|
|
54
|
-
const [result, apiCall] = await (0, postV2ModelsLitellmImport_js_1.postV2ModelsLitellmImport)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55
|
-
if (!result.ok) {
|
|
56
|
-
return {
|
|
57
|
-
content: [{ type: "text", text: result.error.message }],
|
|
58
|
-
isError: true,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const value = result.value;
|
|
62
|
-
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=postV2ModelsLitellmImport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postV2ModelsLitellmImport.js","sourceRoot":"","sources":["../../src/mcp-server/tools/postV2ModelsLitellmImport.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2FAAqF;AACrF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC;AAEW,QAAA,8BAA8B,GAAgC;IACzE,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;oEAEqD;IAClE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,wDAAyB,EACvD,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"}
|