@orq-ai/node 3.6.15 → 3.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +188 -188
- package/bin/mcp-server.js.map +35 -35
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/server.js +1 -1
- 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/bulkcreatedatapoints.js +2 -2
- 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/createprompt.d.ts +12 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +12 -12
- 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 +14 -14
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +14 -14
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +4 -4
- package/models/operations/deploymentinvoke.js +8 -8
- package/models/operations/deployments.d.ts +6 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +6 -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/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +6 -6
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +6 -6
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +6 -6
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +6 -6
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -6
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +6 -6
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +6 -6
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +6 -6
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.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/updateprompt.d.ts +12 -12
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +12 -12
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/security.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +16 -16
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +18 -18
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +121 -121
- package/packages/orq-rc/src/models/operations/createfeedback.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +39 -39
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -30
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +13 -13
- package/packages/orq-rc/src/models/operations/deployments.ts +14 -14
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +26 -26
- package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsgrammar.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalslocalization.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalspii.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalssummarization.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalstranslation.ts +4 -4
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +22 -22
- package/packages/orq-rc/src/models/operations/getevals.ts +339 -364
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +22 -22
- package/packages/orq-rc/src/models/operations/invokeeval.ts +251 -223
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +22 -22
- package/packages/orq-rc/src/models/operations/postv2modelslitellmimport.ts +18 -18
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +10 -10
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +21 -19
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +139 -139
- package/packages/orq-rc/src/models/operations/updateprompt.ts +61 -106
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- 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/createprompt.ts +27 -27
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +30 -30
- package/src/models/operations/deploymentinvoke.ts +13 -13
- package/src/models/operations/deployments.ts +14 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- 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 +14 -14
- package/src/models/operations/getoneprompt.ts +14 -14
- package/src/models/operations/getpromptversion.ts +14 -14
- 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/listpromptversions.ts +14 -14
- 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/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateprompt.ts +28 -28
|
@@ -11,7 +11,7 @@ export type EvalsRagasResponseRelevancyRequestBody = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Latest user message
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
query: string;
|
|
15
15
|
/**
|
|
16
16
|
* The generated response from the model
|
|
17
17
|
*/
|
|
@@ -36,7 +36,7 @@ export const EvalsRagasResponseRelevancyRequestBody$inboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
unknown
|
|
38
38
|
> = z.object({
|
|
39
|
-
|
|
39
|
+
query: z.string(),
|
|
40
40
|
output: z.string(),
|
|
41
41
|
model: z.string(),
|
|
42
42
|
retrievals: z.array(z.string()).optional(),
|
|
@@ -44,7 +44,7 @@ export const EvalsRagasResponseRelevancyRequestBody$inboundSchema: z.ZodType<
|
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type EvalsRagasResponseRelevancyRequestBody$Outbound = {
|
|
47
|
-
|
|
47
|
+
query: string;
|
|
48
48
|
output: string;
|
|
49
49
|
model: string;
|
|
50
50
|
retrievals?: Array<string> | undefined;
|
|
@@ -56,7 +56,7 @@ export const EvalsRagasResponseRelevancyRequestBody$outboundSchema: z.ZodType<
|
|
|
56
56
|
z.ZodTypeDef,
|
|
57
57
|
EvalsRagasResponseRelevancyRequestBody
|
|
58
58
|
> = z.object({
|
|
59
|
-
|
|
59
|
+
query: z.string(),
|
|
60
60
|
output: z.string(),
|
|
61
61
|
model: z.string(),
|
|
62
62
|
retrievals: z.array(z.string()).optional(),
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsSentimentClassificationRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsSentimentClassificationRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsSentimentClassificationRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsSentimentClassificationRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsSentimentClassificationRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsSummarizationRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsSummarizationRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsSummarizationRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsSummarizationRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsSummarizationRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsToneOfVoiceRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsToneOfVoiceRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsToneOfVoiceRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsToneOfVoiceRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsToneOfVoiceRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsTranslationRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsTranslationRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsTranslationRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsTranslationRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsTranslationRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-06-
|
|
149
|
+
"2025-06-17T09:09:49.841Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-06-
|
|
183
|
+
created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-06-
|
|
199
|
+
"2025-06-17T09:09:49.841Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-06-
|
|
233
|
+
created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-06-
|
|
253
|
+
"2025-06-17T09:09:49.841Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-06-
|
|
287
|
+
created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -87,7 +87,7 @@ export type GetAllPromptsResponseFormatType = ClosedEnum<
|
|
|
87
87
|
|
|
88
88
|
export type GetAllPromptsResponseFormatJsonSchema = {
|
|
89
89
|
name: string;
|
|
90
|
-
strict
|
|
90
|
+
strict?: boolean | undefined;
|
|
91
91
|
schema: { [k: string]: any };
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -108,8 +108,8 @@ export type GetAllPromptsResponseFormat1 = {
|
|
|
108
108
|
* 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.
|
|
109
109
|
*/
|
|
110
110
|
export type GetAllPromptsResponseFormat =
|
|
111
|
-
|
|
|
112
|
-
|
|
|
111
|
+
| GetAllPromptsResponseFormat1
|
|
112
|
+
| GetAllPromptsResponseFormat2;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -218,8 +218,8 @@ export type GetAllPromptsModelParameters = {
|
|
|
218
218
|
* 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.
|
|
219
219
|
*/
|
|
220
220
|
responseFormat?:
|
|
221
|
-
| GetAllPromptsResponseFormat2
|
|
222
221
|
| GetAllPromptsResponseFormat1
|
|
222
|
+
| GetAllPromptsResponseFormat2
|
|
223
223
|
| null
|
|
224
224
|
| undefined;
|
|
225
225
|
/**
|
|
@@ -412,11 +412,11 @@ export type GetAllPromptsPromptConfig = {
|
|
|
412
412
|
/**
|
|
413
413
|
* The id of the resource
|
|
414
414
|
*/
|
|
415
|
-
modelDbId?: string | undefined;
|
|
415
|
+
modelDbId?: string | null | undefined;
|
|
416
416
|
/**
|
|
417
417
|
* The modality of the model
|
|
418
418
|
*/
|
|
419
|
-
modelType?: GetAllPromptsModelType | undefined;
|
|
419
|
+
modelType?: GetAllPromptsModelType | null | undefined;
|
|
420
420
|
/**
|
|
421
421
|
* Model Parameters: Not all parameters apply to every model
|
|
422
422
|
*/
|
|
@@ -777,14 +777,14 @@ export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
777
777
|
unknown
|
|
778
778
|
> = z.object({
|
|
779
779
|
name: z.string(),
|
|
780
|
-
strict: z.boolean(),
|
|
780
|
+
strict: z.boolean().optional(),
|
|
781
781
|
schema: z.record(z.any()),
|
|
782
782
|
});
|
|
783
783
|
|
|
784
784
|
/** @internal */
|
|
785
785
|
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
786
786
|
name: string;
|
|
787
|
-
strict
|
|
787
|
+
strict?: boolean | undefined;
|
|
788
788
|
schema: { [k: string]: any };
|
|
789
789
|
};
|
|
790
790
|
|
|
@@ -795,7 +795,7 @@ export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
795
795
|
GetAllPromptsResponseFormatJsonSchema
|
|
796
796
|
> = z.object({
|
|
797
797
|
name: z.string(),
|
|
798
|
-
strict: z.boolean(),
|
|
798
|
+
strict: z.boolean().optional(),
|
|
799
799
|
schema: z.record(z.any()),
|
|
800
800
|
});
|
|
801
801
|
|
|
@@ -912,14 +912,14 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
|
912
912
|
z.ZodTypeDef,
|
|
913
913
|
unknown
|
|
914
914
|
> = z.union([
|
|
915
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
916
915
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
916
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
917
917
|
]);
|
|
918
918
|
|
|
919
919
|
/** @internal */
|
|
920
920
|
export type GetAllPromptsResponseFormat$Outbound =
|
|
921
|
-
|
|
|
922
|
-
|
|
|
921
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
922
|
+
| GetAllPromptsResponseFormat2$Outbound;
|
|
923
923
|
|
|
924
924
|
/** @internal */
|
|
925
925
|
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -927,8 +927,8 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
|
927
927
|
z.ZodTypeDef,
|
|
928
928
|
GetAllPromptsResponseFormat
|
|
929
929
|
> = z.union([
|
|
930
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
931
930
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
931
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
932
932
|
]);
|
|
933
933
|
|
|
934
934
|
/**
|
|
@@ -1047,8 +1047,8 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
1047
1047
|
style: z.string().optional(),
|
|
1048
1048
|
responseFormat: z.nullable(
|
|
1049
1049
|
z.union([
|
|
1050
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1051
1050
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1051
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1052
1052
|
]),
|
|
1053
1053
|
).optional(),
|
|
1054
1054
|
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1076,8 +1076,8 @@ export type GetAllPromptsModelParameters$Outbound = {
|
|
|
1076
1076
|
quality?: string | undefined;
|
|
1077
1077
|
style?: string | undefined;
|
|
1078
1078
|
responseFormat?:
|
|
1079
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1080
1079
|
| GetAllPromptsResponseFormat1$Outbound
|
|
1080
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1081
1081
|
| null
|
|
1082
1082
|
| undefined;
|
|
1083
1083
|
photoRealVersion?: string | undefined;
|
|
@@ -1106,8 +1106,8 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
1106
1106
|
style: z.string().optional(),
|
|
1107
1107
|
responseFormat: z.nullable(
|
|
1108
1108
|
z.union([
|
|
1109
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1110
1109
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1110
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1111
1111
|
]),
|
|
1112
1112
|
).optional(),
|
|
1113
1113
|
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -1928,8 +1928,8 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1928
1928
|
> = z.object({
|
|
1929
1929
|
stream: z.boolean().optional(),
|
|
1930
1930
|
model: z.string().optional(),
|
|
1931
|
-
model_db_id: z.string().optional(),
|
|
1932
|
-
model_type: GetAllPromptsModelType$inboundSchema.optional(),
|
|
1931
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
1932
|
+
model_type: z.nullable(GetAllPromptsModelType$inboundSchema).optional(),
|
|
1933
1933
|
model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
|
|
1934
1934
|
.optional(),
|
|
1935
1935
|
provider: GetAllPromptsProvider$inboundSchema.optional(),
|
|
@@ -1949,8 +1949,8 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1949
1949
|
export type GetAllPromptsPromptConfig$Outbound = {
|
|
1950
1950
|
stream?: boolean | undefined;
|
|
1951
1951
|
model?: string | undefined;
|
|
1952
|
-
model_db_id?: string | undefined;
|
|
1953
|
-
model_type?: string | undefined;
|
|
1952
|
+
model_db_id?: string | null | undefined;
|
|
1953
|
+
model_type?: string | null | undefined;
|
|
1954
1954
|
model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
|
|
1955
1955
|
provider?: string | undefined;
|
|
1956
1956
|
integration_id?: string | null | undefined;
|
|
@@ -1966,8 +1966,8 @@ export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
|
1966
1966
|
> = z.object({
|
|
1967
1967
|
stream: z.boolean().optional(),
|
|
1968
1968
|
model: z.string().optional(),
|
|
1969
|
-
modelDbId: z.string().optional(),
|
|
1970
|
-
modelType: GetAllPromptsModelType$outboundSchema.optional(),
|
|
1969
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
1970
|
+
modelType: z.nullable(GetAllPromptsModelType$outboundSchema).optional(),
|
|
1971
1971
|
modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
|
|
1972
1972
|
.optional(),
|
|
1973
1973
|
provider: GetAllPromptsProvider$outboundSchema.optional(),
|