@orq-ai/node 3.8.0-rc.3 → 3.8.0-rc.31
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 +3 -5
- package/README.md +91 -95
- package/bin/mcp-server.js +2288 -883
- package/bin/mcp-server.js.map +71 -65
- package/docs/sdks/contacts/README.md +30 -2
- package/docs/sdks/knowledge/README.md +1 -1
- package/docs/sdks/orq/README.md +138 -0
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +7 -3
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/getV2ModelsLitellmModels.d.ts +17 -0
- package/funcs/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/funcs/getV2ModelsLitellmModels.js +105 -0
- package/funcs/getV2ModelsLitellmModels.js.map +1 -0
- 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/funcs/postV2ModelsLitellmImport.d.ts +17 -0
- package/funcs/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/funcs/postV2ModelsLitellmImport.js +117 -0
- package/funcs/postV2ModelsLitellmImport.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +3 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js +26 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +9 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js +65 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js.map +1 -0
- package/models/components/deployments.d.ts +8 -8
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +8 -8
- package/models/components/deployments.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 +35 -33
- 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.d.ts +8 -8
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +10 -10
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +36 -36
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -56
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createfeedback.d.ts +8 -8
- package/models/operations/createfeedback.d.ts.map +1 -1
- package/models/operations/createfeedback.js +8 -8
- package/models/operations/createfeedback.js.map +1 -1
- package/models/operations/createprompt.d.ts +24 -18
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +20 -18
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +8 -8
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +8 -8
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +29 -29
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +32 -32
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +7 -4
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -8
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +7 -6
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -12
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/evalsageappropriate.d.ts +2 -2
- package/models/operations/evalsageappropriate.js +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
- package/models/operations/evalsgrammar.d.ts +2 -2
- package/models/operations/evalsgrammar.js +2 -2
- package/models/operations/evalslocalization.d.ts +2 -2
- package/models/operations/evalslocalization.js +2 -2
- package/models/operations/evalspii.d.ts +2 -2
- package/models/operations/evalspii.js +2 -2
- package/models/operations/evalsragascoherence.d.ts +2 -2
- package/models/operations/evalsragascoherence.js +2 -2
- package/models/operations/evalsragasconciseness.d.ts +2 -2
- package/models/operations/evalsragasconciseness.js +2 -2
- package/models/operations/evalsragascontextprecision.d.ts +2 -2
- package/models/operations/evalsragascontextprecision.js +2 -2
- package/models/operations/evalsragascorrectness.d.ts +2 -2
- package/models/operations/evalsragascorrectness.js +2 -2
- package/models/operations/evalsragasfaithfulness.d.ts +2 -2
- package/models/operations/evalsragasfaithfulness.js +2 -2
- package/models/operations/evalsragasharmfulness.d.ts +2 -2
- package/models/operations/evalsragasharmfulness.js +2 -2
- package/models/operations/evalsragasmaliciousness.d.ts +2 -2
- package/models/operations/evalsragasmaliciousness.js +2 -2
- package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
- package/models/operations/evalsragasresponserelevancy.js +2 -2
- package/models/operations/evalssentimentclassification.d.ts +2 -2
- package/models/operations/evalssentimentclassification.js +2 -2
- package/models/operations/evalssummarization.d.ts +2 -2
- package/models/operations/evalssummarization.js +2 -2
- package/models/operations/evalstoneofvoice.d.ts +2 -2
- package/models/operations/evalstoneofvoice.js +2 -2
- package/models/operations/evalstranslation.d.ts +2 -2
- package/models/operations/evalstranslation.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +13 -10
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +11 -10
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.d.ts +88 -88
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +187 -182
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +13 -10
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +11 -10
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +13 -10
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +11 -10
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2modelslitellmmodels.d.ts +185 -0
- package/models/operations/getv2modelslitellmmodels.d.ts.map +1 -0
- package/models/operations/getv2modelslitellmmodels.js +349 -0
- package/models/operations/getv2modelslitellmmodels.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +108 -108
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +141 -144
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +4 -4
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +6 -6
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +13 -10
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +11 -10
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/postv2modelslitellmimport.d.ts +1333 -0
- package/models/operations/postv2modelslitellmimport.d.ts.map +1 -0
- package/models/operations/postv2modelslitellmimport.js +1400 -0
- package/models/operations/postv2modelslitellmimport.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +4 -4
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +6 -6
- package/models/operations/retrievedatapoint.js.map +1 -1
- 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.d.ts +8 -8
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +10 -10
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +38 -38
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +60 -60
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +33 -86
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +41 -64
- package/models/operations/updateprompt.js.map +1 -1
- 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 +16 -1
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +21 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/filesCreate.ts +11 -4
- package/src/funcs/getV2ModelsLitellmModels.ts +143 -0
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/funcs/postV2ModelsLitellmImport.ts +167 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +30 -0
- package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +38 -0
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/createchunk.ts +54 -44
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +18 -18
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +121 -121
- package/src/models/operations/createfeedback.ts +16 -16
- package/src/models/operations/createprompt.ts +41 -39
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +60 -54
- package/src/models/operations/deploymentinvoke.ts +14 -13
- package/src/models/operations/deployments.ts +15 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- package/src/models/operations/evalsageappropriate.ts +4 -4
- package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/src/models/operations/evalsgrammar.ts +4 -4
- package/src/models/operations/evalslocalization.ts +4 -4
- package/src/models/operations/evalspii.ts +4 -4
- package/src/models/operations/evalsragascoherence.ts +4 -4
- package/src/models/operations/evalsragasconciseness.ts +4 -4
- package/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/src/models/operations/evalsragascorrectness.ts +4 -4
- package/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/src/models/operations/evalssentimentclassification.ts +4 -4
- package/src/models/operations/evalssummarization.ts +4 -4
- package/src/models/operations/evalstoneofvoice.ts +4 -4
- package/src/models/operations/evalstranslation.ts +4 -4
- 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/getallprompts.ts +23 -22
- package/src/models/operations/getevals.ts +339 -364
- package/src/models/operations/getoneprompt.ts +23 -22
- package/src/models/operations/getpromptversion.ts +23 -22
- package/src/models/operations/getv2modelslitellmmodels.ts +530 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/invokeeval.ts +251 -223
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +23 -22
- package/src/models/operations/postv2modelslitellmimport.ts +2408 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +10 -10
- 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 +21 -19
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +139 -139
- package/src/models/operations/updateprompt.ts +63 -106
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +37 -1
|
@@ -74,7 +74,7 @@ export type GetOnePromptResponseFormatType = ClosedEnum<
|
|
|
74
74
|
|
|
75
75
|
export type GetOnePromptResponseFormatJsonSchema = {
|
|
76
76
|
name: string;
|
|
77
|
-
strict
|
|
77
|
+
strict?: boolean | undefined;
|
|
78
78
|
schema: { [k: string]: any };
|
|
79
79
|
};
|
|
80
80
|
|
|
@@ -95,8 +95,8 @@ export type GetOnePromptResponseFormat1 = {
|
|
|
95
95
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
96
96
|
*/
|
|
97
97
|
export type GetOnePromptResponseFormat =
|
|
98
|
-
|
|
|
99
|
-
|
|
|
98
|
+
| GetOnePromptResponseFormat1
|
|
99
|
+
| GetOnePromptResponseFormat2;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -205,8 +205,8 @@ export type GetOnePromptModelParameters = {
|
|
|
205
205
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
206
206
|
*/
|
|
207
207
|
responseFormat?:
|
|
208
|
-
| GetOnePromptResponseFormat2
|
|
209
208
|
| GetOnePromptResponseFormat1
|
|
209
|
+
| GetOnePromptResponseFormat2
|
|
210
210
|
| null
|
|
211
211
|
| undefined;
|
|
212
212
|
/**
|
|
@@ -246,6 +246,7 @@ export const GetOnePromptProvider = {
|
|
|
246
246
|
Jina: "jina",
|
|
247
247
|
Togetherai: "togetherai",
|
|
248
248
|
Elevenlabs: "elevenlabs",
|
|
249
|
+
Litellm: "litellm",
|
|
249
250
|
} as const;
|
|
250
251
|
export type GetOnePromptProvider = ClosedEnum<typeof GetOnePromptProvider>;
|
|
251
252
|
|
|
@@ -398,11 +399,11 @@ export type GetOnePromptPromptConfig = {
|
|
|
398
399
|
/**
|
|
399
400
|
* The id of the resource
|
|
400
401
|
*/
|
|
401
|
-
modelDbId?: string | undefined;
|
|
402
|
+
modelDbId?: string | null | undefined;
|
|
402
403
|
/**
|
|
403
404
|
* The modality of the model
|
|
404
405
|
*/
|
|
405
|
-
modelType?: GetOnePromptModelType | undefined;
|
|
406
|
+
modelType?: GetOnePromptModelType | null | undefined;
|
|
406
407
|
/**
|
|
407
408
|
* Model Parameters: Not all parameters apply to every model
|
|
408
409
|
*/
|
|
@@ -720,14 +721,14 @@ export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
720
721
|
unknown
|
|
721
722
|
> = z.object({
|
|
722
723
|
name: z.string(),
|
|
723
|
-
strict: z.boolean(),
|
|
724
|
+
strict: z.boolean().optional(),
|
|
724
725
|
schema: z.record(z.any()),
|
|
725
726
|
});
|
|
726
727
|
|
|
727
728
|
/** @internal */
|
|
728
729
|
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
729
730
|
name: string;
|
|
730
|
-
strict
|
|
731
|
+
strict?: boolean | undefined;
|
|
731
732
|
schema: { [k: string]: any };
|
|
732
733
|
};
|
|
733
734
|
|
|
@@ -738,7 +739,7 @@ export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
738
739
|
GetOnePromptResponseFormatJsonSchema
|
|
739
740
|
> = z.object({
|
|
740
741
|
name: z.string(),
|
|
741
|
-
strict: z.boolean(),
|
|
742
|
+
strict: z.boolean().optional(),
|
|
742
743
|
schema: z.record(z.any()),
|
|
743
744
|
});
|
|
744
745
|
|
|
@@ -851,14 +852,14 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
851
852
|
z.ZodTypeDef,
|
|
852
853
|
unknown
|
|
853
854
|
> = z.union([
|
|
854
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
855
855
|
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
856
|
+
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
856
857
|
]);
|
|
857
858
|
|
|
858
859
|
/** @internal */
|
|
859
860
|
export type GetOnePromptResponseFormat$Outbound =
|
|
860
|
-
|
|
|
861
|
-
|
|
|
861
|
+
| GetOnePromptResponseFormat1$Outbound
|
|
862
|
+
| GetOnePromptResponseFormat2$Outbound;
|
|
862
863
|
|
|
863
864
|
/** @internal */
|
|
864
865
|
export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -866,8 +867,8 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
866
867
|
z.ZodTypeDef,
|
|
867
868
|
GetOnePromptResponseFormat
|
|
868
869
|
> = z.union([
|
|
869
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
870
870
|
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
871
|
+
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
871
872
|
]);
|
|
872
873
|
|
|
873
874
|
/**
|
|
@@ -984,8 +985,8 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
984
985
|
style: z.string().optional(),
|
|
985
986
|
responseFormat: z.nullable(
|
|
986
987
|
z.union([
|
|
987
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
988
988
|
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
989
|
+
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
989
990
|
]),
|
|
990
991
|
).optional(),
|
|
991
992
|
photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1013,8 +1014,8 @@ export type GetOnePromptModelParameters$Outbound = {
|
|
|
1013
1014
|
quality?: string | undefined;
|
|
1014
1015
|
style?: string | undefined;
|
|
1015
1016
|
responseFormat?:
|
|
1016
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
1017
1017
|
| GetOnePromptResponseFormat1$Outbound
|
|
1018
|
+
| GetOnePromptResponseFormat2$Outbound
|
|
1018
1019
|
| null
|
|
1019
1020
|
| undefined;
|
|
1020
1021
|
photoRealVersion?: string | undefined;
|
|
@@ -1043,8 +1044,8 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1043
1044
|
style: z.string().optional(),
|
|
1044
1045
|
responseFormat: z.nullable(
|
|
1045
1046
|
z.union([
|
|
1046
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1047
1047
|
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1048
|
+
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1048
1049
|
]),
|
|
1049
1050
|
).optional(),
|
|
1050
1051
|
photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -1856,8 +1857,8 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
1856
1857
|
> = z.object({
|
|
1857
1858
|
stream: z.boolean().optional(),
|
|
1858
1859
|
model: z.string().optional(),
|
|
1859
|
-
model_db_id: z.string().optional(),
|
|
1860
|
-
model_type: GetOnePromptModelType$inboundSchema.optional(),
|
|
1860
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
1861
|
+
model_type: z.nullable(GetOnePromptModelType$inboundSchema).optional(),
|
|
1861
1862
|
model_parameters: z.lazy(() => GetOnePromptModelParameters$inboundSchema)
|
|
1862
1863
|
.optional(),
|
|
1863
1864
|
provider: GetOnePromptProvider$inboundSchema.optional(),
|
|
@@ -1877,8 +1878,8 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
1877
1878
|
export type GetOnePromptPromptConfig$Outbound = {
|
|
1878
1879
|
stream?: boolean | undefined;
|
|
1879
1880
|
model?: string | undefined;
|
|
1880
|
-
model_db_id?: string | undefined;
|
|
1881
|
-
model_type?: string | undefined;
|
|
1881
|
+
model_db_id?: string | null | undefined;
|
|
1882
|
+
model_type?: string | null | undefined;
|
|
1882
1883
|
model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
|
|
1883
1884
|
provider?: string | undefined;
|
|
1884
1885
|
integration_id?: string | null | undefined;
|
|
@@ -1894,8 +1895,8 @@ export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
|
|
|
1894
1895
|
> = z.object({
|
|
1895
1896
|
stream: z.boolean().optional(),
|
|
1896
1897
|
model: z.string().optional(),
|
|
1897
|
-
modelDbId: z.string().optional(),
|
|
1898
|
-
modelType: GetOnePromptModelType$outboundSchema.optional(),
|
|
1898
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
1899
|
+
modelType: z.nullable(GetOnePromptModelType$outboundSchema).optional(),
|
|
1899
1900
|
modelParameters: z.lazy(() => GetOnePromptModelParameters$outboundSchema)
|
|
1900
1901
|
.optional(),
|
|
1901
1902
|
provider: GetOnePromptProvider$outboundSchema.optional(),
|
|
@@ -75,7 +75,7 @@ export type GetPromptVersionResponseFormatType = ClosedEnum<
|
|
|
75
75
|
|
|
76
76
|
export type GetPromptVersionResponseFormatJsonSchema = {
|
|
77
77
|
name: string;
|
|
78
|
-
strict
|
|
78
|
+
strict?: boolean | undefined;
|
|
79
79
|
schema: { [k: string]: any };
|
|
80
80
|
};
|
|
81
81
|
|
|
@@ -96,8 +96,8 @@ export type GetPromptVersionResponseFormat1 = {
|
|
|
96
96
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
97
97
|
*/
|
|
98
98
|
export type GetPromptVersionResponseFormat =
|
|
99
|
-
|
|
|
100
|
-
|
|
|
99
|
+
| GetPromptVersionResponseFormat1
|
|
100
|
+
| GetPromptVersionResponseFormat2;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -206,8 +206,8 @@ export type GetPromptVersionModelParameters = {
|
|
|
206
206
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
207
207
|
*/
|
|
208
208
|
responseFormat?:
|
|
209
|
-
| GetPromptVersionResponseFormat2
|
|
210
209
|
| GetPromptVersionResponseFormat1
|
|
210
|
+
| GetPromptVersionResponseFormat2
|
|
211
211
|
| null
|
|
212
212
|
| undefined;
|
|
213
213
|
/**
|
|
@@ -247,6 +247,7 @@ export const GetPromptVersionProvider = {
|
|
|
247
247
|
Jina: "jina",
|
|
248
248
|
Togetherai: "togetherai",
|
|
249
249
|
Elevenlabs: "elevenlabs",
|
|
250
|
+
Litellm: "litellm",
|
|
250
251
|
} as const;
|
|
251
252
|
export type GetPromptVersionProvider = ClosedEnum<
|
|
252
253
|
typeof GetPromptVersionProvider
|
|
@@ -401,11 +402,11 @@ export type GetPromptVersionPromptConfig = {
|
|
|
401
402
|
/**
|
|
402
403
|
* The id of the resource
|
|
403
404
|
*/
|
|
404
|
-
modelDbId?: string | undefined;
|
|
405
|
+
modelDbId?: string | null | undefined;
|
|
405
406
|
/**
|
|
406
407
|
* The modality of the model
|
|
407
408
|
*/
|
|
408
|
-
modelType?: GetPromptVersionModelType | undefined;
|
|
409
|
+
modelType?: GetPromptVersionModelType | null | undefined;
|
|
409
410
|
/**
|
|
410
411
|
* Model Parameters: Not all parameters apply to every model
|
|
411
412
|
*/
|
|
@@ -711,14 +712,14 @@ export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
711
712
|
unknown
|
|
712
713
|
> = z.object({
|
|
713
714
|
name: z.string(),
|
|
714
|
-
strict: z.boolean(),
|
|
715
|
+
strict: z.boolean().optional(),
|
|
715
716
|
schema: z.record(z.any()),
|
|
716
717
|
});
|
|
717
718
|
|
|
718
719
|
/** @internal */
|
|
719
720
|
export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
|
|
720
721
|
name: string;
|
|
721
|
-
strict
|
|
722
|
+
strict?: boolean | undefined;
|
|
722
723
|
schema: { [k: string]: any };
|
|
723
724
|
};
|
|
724
725
|
|
|
@@ -729,7 +730,7 @@ export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
729
730
|
GetPromptVersionResponseFormatJsonSchema
|
|
730
731
|
> = z.object({
|
|
731
732
|
name: z.string(),
|
|
732
|
-
strict: z.boolean(),
|
|
733
|
+
strict: z.boolean().optional(),
|
|
733
734
|
schema: z.record(z.any()),
|
|
734
735
|
});
|
|
735
736
|
|
|
@@ -852,14 +853,14 @@ export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
|
|
|
852
853
|
z.ZodTypeDef,
|
|
853
854
|
unknown
|
|
854
855
|
> = z.union([
|
|
855
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
856
856
|
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
857
|
+
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
857
858
|
]);
|
|
858
859
|
|
|
859
860
|
/** @internal */
|
|
860
861
|
export type GetPromptVersionResponseFormat$Outbound =
|
|
861
|
-
|
|
|
862
|
-
|
|
|
862
|
+
| GetPromptVersionResponseFormat1$Outbound
|
|
863
|
+
| GetPromptVersionResponseFormat2$Outbound;
|
|
863
864
|
|
|
864
865
|
/** @internal */
|
|
865
866
|
export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -867,8 +868,8 @@ export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
|
867
868
|
z.ZodTypeDef,
|
|
868
869
|
GetPromptVersionResponseFormat
|
|
869
870
|
> = z.union([
|
|
870
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
871
871
|
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
872
|
+
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
872
873
|
]);
|
|
873
874
|
|
|
874
875
|
/**
|
|
@@ -987,8 +988,8 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
|
|
|
987
988
|
style: z.string().optional(),
|
|
988
989
|
responseFormat: z.nullable(
|
|
989
990
|
z.union([
|
|
990
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
991
991
|
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
992
|
+
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
992
993
|
]),
|
|
993
994
|
).optional(),
|
|
994
995
|
photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1016,8 +1017,8 @@ export type GetPromptVersionModelParameters$Outbound = {
|
|
|
1016
1017
|
quality?: string | undefined;
|
|
1017
1018
|
style?: string | undefined;
|
|
1018
1019
|
responseFormat?:
|
|
1019
|
-
| GetPromptVersionResponseFormat2$Outbound
|
|
1020
1020
|
| GetPromptVersionResponseFormat1$Outbound
|
|
1021
|
+
| GetPromptVersionResponseFormat2$Outbound
|
|
1021
1022
|
| null
|
|
1022
1023
|
| undefined;
|
|
1023
1024
|
photoRealVersion?: string | undefined;
|
|
@@ -1046,8 +1047,8 @@ export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
|
|
|
1046
1047
|
style: z.string().optional(),
|
|
1047
1048
|
responseFormat: z.nullable(
|
|
1048
1049
|
z.union([
|
|
1049
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1050
1050
|
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
1051
|
+
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1051
1052
|
]),
|
|
1052
1053
|
).optional(),
|
|
1053
1054
|
photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -1876,8 +1877,8 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
|
|
|
1876
1877
|
> = z.object({
|
|
1877
1878
|
stream: z.boolean().optional(),
|
|
1878
1879
|
model: z.string().optional(),
|
|
1879
|
-
model_db_id: z.string().optional(),
|
|
1880
|
-
model_type: GetPromptVersionModelType$inboundSchema.optional(),
|
|
1880
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
1881
|
+
model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
|
|
1881
1882
|
model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
|
|
1882
1883
|
.optional(),
|
|
1883
1884
|
provider: GetPromptVersionProvider$inboundSchema.optional(),
|
|
@@ -1897,8 +1898,8 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
|
|
|
1897
1898
|
export type GetPromptVersionPromptConfig$Outbound = {
|
|
1898
1899
|
stream?: boolean | undefined;
|
|
1899
1900
|
model?: string | undefined;
|
|
1900
|
-
model_db_id?: string | undefined;
|
|
1901
|
-
model_type?: string | undefined;
|
|
1901
|
+
model_db_id?: string | null | undefined;
|
|
1902
|
+
model_type?: string | null | undefined;
|
|
1902
1903
|
model_parameters?: GetPromptVersionModelParameters$Outbound | undefined;
|
|
1903
1904
|
provider?: string | undefined;
|
|
1904
1905
|
integration_id?: string | null | undefined;
|
|
@@ -1914,8 +1915,8 @@ export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
|
|
|
1914
1915
|
> = z.object({
|
|
1915
1916
|
stream: z.boolean().optional(),
|
|
1916
1917
|
model: z.string().optional(),
|
|
1917
|
-
modelDbId: z.string().optional(),
|
|
1918
|
-
modelType: GetPromptVersionModelType$outboundSchema.optional(),
|
|
1918
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
1919
|
+
modelType: z.nullable(GetPromptVersionModelType$outboundSchema).optional(),
|
|
1919
1920
|
modelParameters: z.lazy(() => GetPromptVersionModelParameters$outboundSchema)
|
|
1920
1921
|
.optional(),
|
|
1921
1922
|
provider: GetPromptVersionProvider$outboundSchema.optional(),
|