@orq-ai/node 4.11.0-rc.33 → 4.11.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/README.md +36 -40
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -4
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +0 -1
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +0 -1
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentinvoke.d.ts +0 -1
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +0 -1
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +0 -1
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +0 -1
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +0 -1
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +0 -1
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +0 -1
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +0 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +0 -1
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +0 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +0 -1
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +0 -1
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listpromptversions.d.ts +0 -1
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +0 -1
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +0 -1
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +0 -1
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/sdk/models.d.ts +0 -17
- package/sdk/models.d.ts.map +1 -1
- package/sdk/models.js +0 -20
- package/sdk/models.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -4
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +0 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentinvoke.ts +0 -1
- package/src/models/operations/deployments.ts +0 -1
- package/src/models/operations/deploymentstream.ts +0 -1
- package/src/models/operations/getallprompts.ts +0 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +0 -1
- package/src/models/operations/getpromptversion.ts +0 -1
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listpromptversions.ts +0 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +0 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
- package/src/sdk/models.ts +0 -35
- package/funcs/modelsImportLitellm.d.ts +0 -17
- package/funcs/modelsImportLitellm.d.ts.map +0 -1
- package/funcs/modelsImportLitellm.js +0 -118
- package/funcs/modelsImportLitellm.js.map +0 -1
- package/funcs/modelsListLitellm.d.ts +0 -18
- package/funcs/modelsListLitellm.d.ts.map +0 -1
- package/funcs/modelsListLitellm.js +0 -105
- package/funcs/modelsListLitellm.js.map +0 -1
- package/models/components/litellmmodel.d.ts +0 -18
- package/models/components/litellmmodel.d.ts.map +0 -1
- package/models/components/litellmmodel.js +0 -60
- package/models/components/litellmmodel.js.map +0 -1
- package/models/components/litellmmodelinfo.d.ts +0 -44
- package/models/components/litellmmodelinfo.d.ts.map +0 -1
- package/models/components/litellmmodelinfo.js +0 -83
- package/models/components/litellmmodelinfo.js.map +0 -1
- package/models/components/litellmparams.d.ts +0 -18
- package/models/components/litellmparams.d.ts.map +0 -1
- package/models/components/litellmparams.js +0 -59
- package/models/components/litellmparams.js.map +0 -1
- package/models/components/modeldocument.d.ts +0 -39
- package/models/components/modeldocument.d.ts.map +0 -1
- package/models/components/modeldocument.js +0 -99
- package/models/components/modeldocument.js.map +0 -1
- package/src/funcs/modelsImportLitellm.ts +0 -166
- package/src/funcs/modelsListLitellm.ts +0 -144
- package/src/models/components/litellmmodel.ts +0 -50
- package/src/models/components/litellmmodelinfo.ts +0 -97
- package/src/models/components/litellmparams.ts +0 -43
- package/src/models/components/modeldocument.ts +0 -112
|
@@ -1,60 +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.LiteLLMModel$outboundSchema = void 0;
|
|
40
|
-
exports.liteLLMModelToJSON = liteLLMModelToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const litellmmodelinfo_js_1 = require("./litellmmodelinfo.js");
|
|
44
|
-
const litellmparams_js_1 = require("./litellmparams.js");
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.LiteLLMModel$outboundSchema = z.object({
|
|
47
|
-
litellmParams: litellmparams_js_1.LiteLLMParams$outboundSchema,
|
|
48
|
-
modelInfo: litellmmodelinfo_js_1.LiteLLMModelInfo$outboundSchema,
|
|
49
|
-
modelName: z.string(),
|
|
50
|
-
}).transform((v) => {
|
|
51
|
-
return (0, primitives_js_1.remap)(v, {
|
|
52
|
-
litellmParams: "litellm_params",
|
|
53
|
-
modelInfo: "model_info",
|
|
54
|
-
modelName: "model_name",
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
function liteLLMModelToJSON(liteLLMModel) {
|
|
58
|
-
return JSON.stringify(exports.LiteLLMModel$outboundSchema.parse(liteLLMModel));
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=litellmmodel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellmmodel.js","sourceRoot":"","sources":["../../src/models/components/litellmmodel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CH,gDAEC;AA7CD,0CAA4B;AAC5B,2DAA0D;AAC1D,+DAI+B;AAC/B,yDAI4B;AAe5B,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,+CAA4B;IAC3C,SAAS,EAAE,qDAA+B;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type LiteLLMModelInfo = {
|
|
3
|
-
dbModel: boolean | null;
|
|
4
|
-
id: string | null;
|
|
5
|
-
inputCostPerToken?: number | undefined;
|
|
6
|
-
key: string | null;
|
|
7
|
-
litellmProvider: string | null;
|
|
8
|
-
maxInputTokens?: number | undefined;
|
|
9
|
-
maxOutputTokens?: number | undefined;
|
|
10
|
-
mode: string | null;
|
|
11
|
-
outputCostPerToken?: number | undefined;
|
|
12
|
-
supportedOpenaiParams?: Array<string> | null | undefined;
|
|
13
|
-
supportsFunctionCalling?: boolean | undefined;
|
|
14
|
-
supportsNativeStreaming?: boolean | undefined;
|
|
15
|
-
supportsReasoning?: boolean | undefined;
|
|
16
|
-
supportsResponseSchema?: boolean | undefined;
|
|
17
|
-
supportsSystemMessages?: boolean | undefined;
|
|
18
|
-
supportsToolChoice?: boolean | undefined;
|
|
19
|
-
supportsVision?: boolean | undefined;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export type LiteLLMModelInfo$Outbound = {
|
|
23
|
-
db_model: boolean | null;
|
|
24
|
-
id: string | null;
|
|
25
|
-
input_cost_per_token?: number | undefined;
|
|
26
|
-
key: string | null;
|
|
27
|
-
litellm_provider: string | null;
|
|
28
|
-
max_input_tokens?: number | undefined;
|
|
29
|
-
max_output_tokens?: number | undefined;
|
|
30
|
-
mode: string | null;
|
|
31
|
-
output_cost_per_token?: number | undefined;
|
|
32
|
-
supported_openai_params?: Array<string> | null | undefined;
|
|
33
|
-
supports_function_calling?: boolean | undefined;
|
|
34
|
-
supports_native_streaming?: boolean | undefined;
|
|
35
|
-
supports_reasoning?: boolean | undefined;
|
|
36
|
-
supports_response_schema?: boolean | undefined;
|
|
37
|
-
supports_system_messages?: boolean | undefined;
|
|
38
|
-
supports_tool_choice?: boolean | undefined;
|
|
39
|
-
supports_vision?: boolean | undefined;
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const LiteLLMModelInfo$outboundSchema: z.ZodType<LiteLLMModelInfo$Outbound, z.ZodTypeDef, LiteLLMModelInfo>;
|
|
43
|
-
export declare function liteLLMModelInfoToJSON(liteLLMModelInfo: LiteLLMModelInfo): string;
|
|
44
|
-
//# sourceMappingURL=litellmmodelinfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellmmodelinfo.d.ts","sourceRoot":"","sources":["../../src/models/components/litellmmodelinfo.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ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iB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,uBAAuB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3D,yBAAyB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,yBAAyB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACzC,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAoChB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR"}
|
|
@@ -1,83 +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.LiteLLMModelInfo$outboundSchema = void 0;
|
|
40
|
-
exports.liteLLMModelInfoToJSON = liteLLMModelInfoToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
/** @internal */
|
|
44
|
-
exports.LiteLLMModelInfo$outboundSchema = z.object({
|
|
45
|
-
dbModel: z.nullable(z.boolean()),
|
|
46
|
-
id: z.nullable(z.string()),
|
|
47
|
-
inputCostPerToken: z.number().optional(),
|
|
48
|
-
key: z.nullable(z.string()),
|
|
49
|
-
litellmProvider: z.nullable(z.string()),
|
|
50
|
-
maxInputTokens: z.number().int().optional(),
|
|
51
|
-
maxOutputTokens: z.number().int().optional(),
|
|
52
|
-
mode: z.nullable(z.string()),
|
|
53
|
-
outputCostPerToken: z.number().optional(),
|
|
54
|
-
supportedOpenaiParams: z.nullable(z.array(z.string())).optional(),
|
|
55
|
-
supportsFunctionCalling: z.boolean().optional(),
|
|
56
|
-
supportsNativeStreaming: z.boolean().optional(),
|
|
57
|
-
supportsReasoning: z.boolean().optional(),
|
|
58
|
-
supportsResponseSchema: z.boolean().optional(),
|
|
59
|
-
supportsSystemMessages: z.boolean().optional(),
|
|
60
|
-
supportsToolChoice: z.boolean().optional(),
|
|
61
|
-
supportsVision: z.boolean().optional(),
|
|
62
|
-
}).transform((v) => {
|
|
63
|
-
return (0, primitives_js_1.remap)(v, {
|
|
64
|
-
dbModel: "db_model",
|
|
65
|
-
inputCostPerToken: "input_cost_per_token",
|
|
66
|
-
litellmProvider: "litellm_provider",
|
|
67
|
-
maxInputTokens: "max_input_tokens",
|
|
68
|
-
maxOutputTokens: "max_output_tokens",
|
|
69
|
-
outputCostPerToken: "output_cost_per_token",
|
|
70
|
-
supportedOpenaiParams: "supported_openai_params",
|
|
71
|
-
supportsFunctionCalling: "supports_function_calling",
|
|
72
|
-
supportsNativeStreaming: "supports_native_streaming",
|
|
73
|
-
supportsReasoning: "supports_reasoning",
|
|
74
|
-
supportsResponseSchema: "supports_response_schema",
|
|
75
|
-
supportsSystemMessages: "supports_system_messages",
|
|
76
|
-
supportsToolChoice: "supports_tool_choice",
|
|
77
|
-
supportsVision: "supports_vision",
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
function liteLLMModelInfoToJSON(liteLLMModelInfo) {
|
|
81
|
-
return JSON.stringify(exports.LiteLLMModelInfo$outboundSchema.parse(liteLLMModelInfo));
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=litellmmodelinfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellmmodelinfo.js","sourceRoot":"","sources":["../../src/models/components/litellmmodelin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AC9C,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9C,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1C,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;QACnB,iBAAiB,EAAE,sBAAsB;QACzC,eAAe,EAAE,kBAAkB;QACnC,cAAc,EAAE,kBAAkB;QAClC,eAAe,EAAE,mBAAmB;QACpC,kBAAkB,EAAE,uBAAuB;QAC3C,qBAAqB,EAAE,yBAAyB;QAChD,uBAAuB,EAAE,2BAA2B;QACpD,uBAAuB,EAAE,2BAA2B;QACpD,iBAAiB,EAAE,oBAAoB;QACvC,sBAAsB,EAAE,0BAA0B;QAClD,sBAAsB,EAAE,0BAA0B;QAClD,kBAAkB,EAAE,sBAAsB;QAC1C,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type LiteLLMParams = {
|
|
3
|
-
mergeReasoningContentInChoices: boolean;
|
|
4
|
-
model: string;
|
|
5
|
-
useInPassThrough: boolean;
|
|
6
|
-
useLitellmProxy: boolean;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export type LiteLLMParams$Outbound = {
|
|
10
|
-
merge_reasoning_content_in_choices: boolean;
|
|
11
|
-
model: string;
|
|
12
|
-
use_in_pass_through: boolean;
|
|
13
|
-
use_litellm_proxy: boolean;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const LiteLLMParams$outboundSchema: z.ZodType<LiteLLMParams$Outbound, z.ZodTypeDef, LiteLLMParams>;
|
|
17
|
-
export declare function liteLLMParamsToJSON(liteLLMParams: LiteLLMParams): string;
|
|
18
|
-
//# sourceMappingURL=litellmparams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellmparams.d.ts","sourceRoot":"","sources":["../../src/models/components/litellmparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,aAAa,GAAG;IAC1B,8BAA8B,EAAE,OAAO,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,kCAAkC,EAAE,OAAO,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAYb,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE"}
|
|
@@ -1,59 +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.LiteLLMParams$outboundSchema = void 0;
|
|
40
|
-
exports.liteLLMParamsToJSON = liteLLMParamsToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
/** @internal */
|
|
44
|
-
exports.LiteLLMParams$outboundSchema = z.object({
|
|
45
|
-
mergeReasoningContentInChoices: z.boolean(),
|
|
46
|
-
model: z.string(),
|
|
47
|
-
useInPassThrough: z.boolean(),
|
|
48
|
-
useLitellmProxy: z.boolean(),
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return (0, primitives_js_1.remap)(v, {
|
|
51
|
-
mergeReasoningContentInChoices: "merge_reasoning_content_in_choices",
|
|
52
|
-
useInPassThrough: "use_in_pass_through",
|
|
53
|
-
useLitellmProxy: "use_litellm_proxy",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
function liteLLMParamsToJSON(liteLLMParams) {
|
|
57
|
-
return JSON.stringify(exports.LiteLLMParams$outboundSchema.parse(liteLLMParams));
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=litellmparams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellmparams.js","sourceRoot":"","sources":["../../src/models/components/litellmparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,kDAEC;AAtCD,0CAA4B;AAC5B,2DAA0D;AAiB1D,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,8BAA8B,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,8BAA8B,EAAE,oCAAoC;QACpE,gBAAgB,EAAE,qBAAqB;QACvC,eAAe,EAAE,mBAAmB;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { ModelConfigurationResponse } from "./modelconfigurationresponse.js";
|
|
5
|
-
import { ModelMetadata } from "./modelmetadata.js";
|
|
6
|
-
import { ModelParameterDocument } from "./modelparameterdocument.js";
|
|
7
|
-
export type ModelDocument = {
|
|
8
|
-
configuration: ModelConfigurationResponse;
|
|
9
|
-
created: Date;
|
|
10
|
-
description: string | null;
|
|
11
|
-
displayName: string;
|
|
12
|
-
docsUrl: string | null;
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
enabledForEndpoints: boolean;
|
|
15
|
-
enabledForPlayground: boolean;
|
|
16
|
-
hasCpuPricing: boolean;
|
|
17
|
-
hasFunctions: boolean;
|
|
18
|
-
id: string;
|
|
19
|
-
inputCost: number | null;
|
|
20
|
-
inputCurrency: string;
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
metadata: ModelMetadata;
|
|
23
|
-
modelDeveloper?: string | undefined;
|
|
24
|
-
modelFamily?: string | undefined;
|
|
25
|
-
modelId: string;
|
|
26
|
-
modelType: string;
|
|
27
|
-
outputCost: number | null;
|
|
28
|
-
outputCurrency: string;
|
|
29
|
-
owner: string;
|
|
30
|
-
parameters: Array<ModelParameterDocument> | null;
|
|
31
|
-
pricingUrl: string | null;
|
|
32
|
-
provider: string;
|
|
33
|
-
refId: string;
|
|
34
|
-
updated: Date;
|
|
35
|
-
};
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const ModelDocument$inboundSchema: z.ZodType<ModelDocument, z.ZodTypeDef, unknown>;
|
|
38
|
-
export declare function modelDocumentFromJSON(jsonString: string): SafeParseResult<ModelDocument, SDKValidationError>;
|
|
39
|
-
//# sourceMappingURL=modeldocument.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modeldocument.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,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAgDP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -1,99 +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.ModelDocument$inboundSchema = void 0;
|
|
40
|
-
exports.modelDocumentFromJSON = modelDocumentFromJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const modelconfigurationresponse_js_1 = require("./modelconfigurationresponse.js");
|
|
45
|
-
const modelmetadata_js_1 = require("./modelmetadata.js");
|
|
46
|
-
const modelparameterdocument_js_1 = require("./modelparameterdocument.js");
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.ModelDocument$inboundSchema = z.object({
|
|
49
|
-
configuration: modelconfigurationresponse_js_1.ModelConfigurationResponse$inboundSchema,
|
|
50
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
51
|
-
description: z.nullable(z.string()),
|
|
52
|
-
display_name: z.string(),
|
|
53
|
-
docs_url: z.nullable(z.string()),
|
|
54
|
-
enabled: z.boolean(),
|
|
55
|
-
enabled_for_endpoints: z.boolean(),
|
|
56
|
-
enabled_for_playground: z.boolean(),
|
|
57
|
-
has_cpu_pricing: z.boolean(),
|
|
58
|
-
has_functions: z.boolean(),
|
|
59
|
-
id: z.string(),
|
|
60
|
-
input_cost: z.nullable(z.number()),
|
|
61
|
-
input_currency: z.string(),
|
|
62
|
-
is_active: z.boolean(),
|
|
63
|
-
metadata: modelmetadata_js_1.ModelMetadata$inboundSchema,
|
|
64
|
-
model_developer: z.string().optional(),
|
|
65
|
-
model_family: z.string().optional(),
|
|
66
|
-
model_id: z.string(),
|
|
67
|
-
model_type: z.string(),
|
|
68
|
-
output_cost: z.nullable(z.number()),
|
|
69
|
-
output_currency: z.string(),
|
|
70
|
-
owner: z.string(),
|
|
71
|
-
parameters: z.nullable(z.array(modelparameterdocument_js_1.ModelParameterDocument$inboundSchema)),
|
|
72
|
-
pricing_url: z.nullable(z.string()),
|
|
73
|
-
provider: z.string(),
|
|
74
|
-
refId: z.string(),
|
|
75
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
76
|
-
}).transform((v) => {
|
|
77
|
-
return (0, primitives_js_1.remap)(v, {
|
|
78
|
-
"display_name": "displayName",
|
|
79
|
-
"docs_url": "docsUrl",
|
|
80
|
-
"enabled_for_endpoints": "enabledForEndpoints",
|
|
81
|
-
"enabled_for_playground": "enabledForPlayground",
|
|
82
|
-
"has_cpu_pricing": "hasCpuPricing",
|
|
83
|
-
"has_functions": "hasFunctions",
|
|
84
|
-
"input_cost": "inputCost",
|
|
85
|
-
"input_currency": "inputCurrency",
|
|
86
|
-
"is_active": "isActive",
|
|
87
|
-
"model_developer": "modelDeveloper",
|
|
88
|
-
"model_family": "modelFamily",
|
|
89
|
-
"model_id": "modelId",
|
|
90
|
-
"model_type": "modelType",
|
|
91
|
-
"output_cost": "outputCost",
|
|
92
|
-
"output_currency": "outputCurrency",
|
|
93
|
-
"pricing_url": "pricingUrl",
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
function modelDocumentFromJSON(jsonString) {
|
|
97
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelDocument$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelDocument' from JSON`);
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=modeldocument.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version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C,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { OrqCore } from "../core.js";
|
|
7
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
-
import * as M from "../lib/matchers.js";
|
|
10
|
-
import { compactMap } from "../lib/primitives.js";
|
|
11
|
-
import { safeParse } from "../lib/schemas.js";
|
|
12
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
-
import { pathToFunc } from "../lib/url.js";
|
|
15
|
-
import * as components from "../models/components/index.js";
|
|
16
|
-
import {
|
|
17
|
-
ConnectionError,
|
|
18
|
-
InvalidRequestError,
|
|
19
|
-
RequestAbortedError,
|
|
20
|
-
RequestTimeoutError,
|
|
21
|
-
UnexpectedClientError,
|
|
22
|
-
} from "../models/errors/httpclienterrors.js";
|
|
23
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
24
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Import models from LiteLLM
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Bulk-imports a list of LiteLLM model definitions into the workspace model garden.
|
|
34
|
-
*/
|
|
35
|
-
export function modelsImportLitellm(
|
|
36
|
-
client: OrqCore,
|
|
37
|
-
request: Array<components.LiteLLMModel> | null,
|
|
38
|
-
options?: RequestOptions,
|
|
39
|
-
): APIPromise<
|
|
40
|
-
Result<
|
|
41
|
-
Array<components.ModelDocument>,
|
|
42
|
-
| OrqError
|
|
43
|
-
| ResponseValidationError
|
|
44
|
-
| ConnectionError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| InvalidRequestError
|
|
48
|
-
| UnexpectedClientError
|
|
49
|
-
| SDKValidationError
|
|
50
|
-
>
|
|
51
|
-
> {
|
|
52
|
-
return new APIPromise($do(
|
|
53
|
-
client,
|
|
54
|
-
request,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: OrqCore,
|
|
61
|
-
request: Array<components.LiteLLMModel> | null,
|
|
62
|
-
options?: RequestOptions,
|
|
63
|
-
): Promise<
|
|
64
|
-
[
|
|
65
|
-
Result<
|
|
66
|
-
Array<components.ModelDocument>,
|
|
67
|
-
| OrqError
|
|
68
|
-
| ResponseValidationError
|
|
69
|
-
| ConnectionError
|
|
70
|
-
| RequestAbortedError
|
|
71
|
-
| RequestTimeoutError
|
|
72
|
-
| InvalidRequestError
|
|
73
|
-
| UnexpectedClientError
|
|
74
|
-
| SDKValidationError
|
|
75
|
-
>,
|
|
76
|
-
APICall,
|
|
77
|
-
]
|
|
78
|
-
> {
|
|
79
|
-
const parsed = safeParse(
|
|
80
|
-
request,
|
|
81
|
-
(value) =>
|
|
82
|
-
z.nullable(z.array(components.LiteLLMModel$outboundSchema)).parse(value),
|
|
83
|
-
"Input validation failed",
|
|
84
|
-
);
|
|
85
|
-
if (!parsed.ok) {
|
|
86
|
-
return [parsed, { status: "invalid" }];
|
|
87
|
-
}
|
|
88
|
-
const payload = parsed.value;
|
|
89
|
-
const body = payload === undefined
|
|
90
|
-
? null
|
|
91
|
-
: encodeJSON("body", payload, { explode: true });
|
|
92
|
-
|
|
93
|
-
const path = pathToFunc("/v2/models/litellm/import")();
|
|
94
|
-
|
|
95
|
-
const headers = new Headers(compactMap({
|
|
96
|
-
"Content-Type": "application/json",
|
|
97
|
-
Accept: "application/json",
|
|
98
|
-
}));
|
|
99
|
-
|
|
100
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
101
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
102
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
-
|
|
104
|
-
const context = {
|
|
105
|
-
options: client._options,
|
|
106
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
-
operationID: "ModelLiteLLMImport",
|
|
108
|
-
oAuth2Scopes: null,
|
|
109
|
-
|
|
110
|
-
resolvedSecurity: requestSecurity,
|
|
111
|
-
|
|
112
|
-
securitySource: client._options.apiKey,
|
|
113
|
-
retryConfig: options?.retries
|
|
114
|
-
|| client._options.retryConfig
|
|
115
|
-
|| { strategy: "none" },
|
|
116
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const requestRes = client._createRequest(context, {
|
|
120
|
-
security: requestSecurity,
|
|
121
|
-
method: "POST",
|
|
122
|
-
baseURL: options?.serverURL,
|
|
123
|
-
path: path,
|
|
124
|
-
headers: headers,
|
|
125
|
-
body: body,
|
|
126
|
-
userAgent: client._options.userAgent,
|
|
127
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
128
|
-
}, options);
|
|
129
|
-
if (!requestRes.ok) {
|
|
130
|
-
return [requestRes, { status: "invalid" }];
|
|
131
|
-
}
|
|
132
|
-
const req = requestRes.value;
|
|
133
|
-
|
|
134
|
-
const doResult = await client._do(req, {
|
|
135
|
-
context,
|
|
136
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
137
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
138
|
-
retryConfig: context.retryConfig,
|
|
139
|
-
retryCodes: context.retryCodes,
|
|
140
|
-
});
|
|
141
|
-
if (!doResult.ok) {
|
|
142
|
-
return [doResult, { status: "request-error", request: req }];
|
|
143
|
-
}
|
|
144
|
-
const response = doResult.value;
|
|
145
|
-
|
|
146
|
-
const [result] = await M.match<
|
|
147
|
-
Array<components.ModelDocument>,
|
|
148
|
-
| OrqError
|
|
149
|
-
| ResponseValidationError
|
|
150
|
-
| ConnectionError
|
|
151
|
-
| RequestAbortedError
|
|
152
|
-
| RequestTimeoutError
|
|
153
|
-
| InvalidRequestError
|
|
154
|
-
| UnexpectedClientError
|
|
155
|
-
| SDKValidationError
|
|
156
|
-
>(
|
|
157
|
-
M.json(200, z.array(components.ModelDocument$inboundSchema)),
|
|
158
|
-
M.fail([400, 404, "4XX"]),
|
|
159
|
-
M.fail("5XX"),
|
|
160
|
-
)(response, req);
|
|
161
|
-
if (!result.ok) {
|
|
162
|
-
return [result, { status: "complete", request: req, response }];
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return [result, { status: "complete", request: req, response }];
|
|
166
|
-
}
|