@orq-ai/node 4.16.3 → 4.16.5
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/autorouterconfig.ts +18 -0
- package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +13 -0
- package/packages/orq-rc/src/models/components/index.ts +2 -0
- package/packages/orq-rc/src/models/components/modelfusion.ts +1 -1
- package/packages/orq-rc/src/models/components/modelsconfig.ts +13 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/routingrulemodelsconfig.ts +16 -0
- package/packages/orq-rc/src/models/components/sessionaffinityconfig.ts +70 -0
- package/packages/orq-rc/src/models/components/smartrouter.ts +7 -0
- package/packages/orq-rc/src/models/components/smartroutersessionaffinity.ts +70 -0
- package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +13 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -0
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -0
- package/packages/orq-rc/src/models/operations/createclassify.ts +11 -0
- package/packages/orq-rc/src/models/operations/createcompletion.ts +14 -0
- package/packages/orq-rc/src/models/operations/createdecisions.ts +11 -0
- package/packages/orq-rc/src/models/operations/createembedding.ts +7 -0
- package/packages/orq-rc/src/models/operations/createimage.ts +14 -0
- package/packages/orq-rc/src/models/operations/createimageedit.ts +14 -0
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +14 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +13 -0
- package/packages/orq-rc/src/models/operations/creatererank.ts +14 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +7 -0
- package/packages/orq-rc/src/models/operations/createspeech.ts +14 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtranscription.ts +14 -0
- package/packages/orq-rc/src/models/operations/createtranslation.ts +14 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +6 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +6 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +6 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +12 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreate.ts +4 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +4 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +4 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +4 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +4 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +4 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +4 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +12 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +15 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +26 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +13 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/smartrouters.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -252,6 +252,10 @@ export type CreateImageOrq = {
|
|
|
252
252
|
* Retry configuration for the request
|
|
253
253
|
*/
|
|
254
254
|
retry?: CreateImageRouterImagesGenerationsRetry | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
257
|
+
*/
|
|
258
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
255
259
|
/**
|
|
256
260
|
* Array of fallback models to use if primary model fails
|
|
257
261
|
*/
|
|
@@ -336,6 +340,10 @@ export type CreateImageRequestBody = {
|
|
|
336
340
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
337
341
|
*/
|
|
338
342
|
name?: string | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
345
|
+
*/
|
|
346
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
339
347
|
/**
|
|
340
348
|
* Array of fallback models to use if primary model fails
|
|
341
349
|
*/
|
|
@@ -824,6 +832,7 @@ export function createImageRouterImagesGenerationsTimeoutToJSON(
|
|
|
824
832
|
export type CreateImageOrq$Outbound = {
|
|
825
833
|
name?: string | undefined;
|
|
826
834
|
retry?: CreateImageRouterImagesGenerationsRetry$Outbound | undefined;
|
|
835
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
827
836
|
fallbacks?:
|
|
828
837
|
| Array<CreateImageRouterImagesGenerationsFallbacks$Outbound>
|
|
829
838
|
| undefined;
|
|
@@ -845,6 +854,7 @@ export const CreateImageOrq$outboundSchema: z.ZodType<
|
|
|
845
854
|
name: z.string().optional(),
|
|
846
855
|
retry: z.lazy(() => CreateImageRouterImagesGenerationsRetry$outboundSchema)
|
|
847
856
|
.optional(),
|
|
857
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
848
858
|
fallbacks: z.array(
|
|
849
859
|
z.lazy(() => CreateImageRouterImagesGenerationsFallbacks$outboundSchema),
|
|
850
860
|
).optional(),
|
|
@@ -860,6 +870,7 @@ export const CreateImageOrq$outboundSchema: z.ZodType<
|
|
|
860
870
|
).optional(),
|
|
861
871
|
}).transform((v) => {
|
|
862
872
|
return remap$(v, {
|
|
873
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
863
874
|
loadBalancer: "load_balancer",
|
|
864
875
|
});
|
|
865
876
|
});
|
|
@@ -883,6 +894,7 @@ export type CreateImageRequestBody$Outbound = {
|
|
|
883
894
|
style?: string | null | undefined;
|
|
884
895
|
metadata?: { [k: string]: string } | undefined;
|
|
885
896
|
name?: string | undefined;
|
|
897
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
886
898
|
fallbacks?: Array<CreateImageFallbacks$Outbound> | undefined;
|
|
887
899
|
retry?: CreateImageRetry$Outbound | undefined;
|
|
888
900
|
cache?: CreateImageCache$Outbound | undefined;
|
|
@@ -912,6 +924,7 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
|
|
|
912
924
|
style: z.nullable(Style$outboundSchema).optional(),
|
|
913
925
|
metadata: z.record(z.string()).optional(),
|
|
914
926
|
name: z.string().optional(),
|
|
927
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
915
928
|
fallbacks: z.array(z.lazy(() => CreateImageFallbacks$outboundSchema))
|
|
916
929
|
.optional(),
|
|
917
930
|
retry: z.lazy(() => CreateImageRetry$outboundSchema).optional(),
|
|
@@ -926,6 +939,7 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
|
|
|
926
939
|
outputCompression: "output_compression",
|
|
927
940
|
outputFormat: "output_format",
|
|
928
941
|
responseFormat: "response_format",
|
|
942
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
929
943
|
loadBalancer: "load_balancer",
|
|
930
944
|
});
|
|
931
945
|
});
|
|
@@ -232,6 +232,10 @@ export type CreateImageEditOrq = {
|
|
|
232
232
|
* Retry configuration for the request
|
|
233
233
|
*/
|
|
234
234
|
retry?: CreateImageEditRouterImagesEditsRetry | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
237
|
+
*/
|
|
238
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
235
239
|
/**
|
|
236
240
|
* Array of fallback models to use if primary model fails
|
|
237
241
|
*/
|
|
@@ -301,6 +305,10 @@ export type CreateImageEditRequestBody = {
|
|
|
301
305
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
302
306
|
*/
|
|
303
307
|
name?: string | undefined;
|
|
308
|
+
/**
|
|
309
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
310
|
+
*/
|
|
311
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
304
312
|
/**
|
|
305
313
|
* Array of fallback models to use if primary model fails
|
|
306
314
|
*/
|
|
@@ -861,6 +869,7 @@ export function createImageEditRouterImagesEditsTimeoutToJSON(
|
|
|
861
869
|
export type CreateImageEditOrq$Outbound = {
|
|
862
870
|
name?: string | undefined;
|
|
863
871
|
retry?: CreateImageEditRouterImagesEditsRetry$Outbound | undefined;
|
|
872
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
864
873
|
fallbacks?:
|
|
865
874
|
| Array<CreateImageEditRouterImagesEditsFallbacks$Outbound>
|
|
866
875
|
| undefined;
|
|
@@ -883,6 +892,7 @@ export const CreateImageEditOrq$outboundSchema: z.ZodType<
|
|
|
883
892
|
name: z.string().optional(),
|
|
884
893
|
retry: z.lazy(() => CreateImageEditRouterImagesEditsRetry$outboundSchema)
|
|
885
894
|
.optional(),
|
|
895
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
886
896
|
fallbacks: z.array(
|
|
887
897
|
z.lazy(() => CreateImageEditRouterImagesEditsFallbacks$outboundSchema),
|
|
888
898
|
).optional(),
|
|
@@ -898,6 +908,7 @@ export const CreateImageEditOrq$outboundSchema: z.ZodType<
|
|
|
898
908
|
.optional(),
|
|
899
909
|
}).transform((v) => {
|
|
900
910
|
return remap$(v, {
|
|
911
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
901
912
|
loadBalancer: "load_balancer",
|
|
902
913
|
});
|
|
903
914
|
});
|
|
@@ -921,6 +932,7 @@ export type CreateImageEditRequestBody$Outbound = {
|
|
|
921
932
|
response_format?: string | undefined;
|
|
922
933
|
user?: string | undefined;
|
|
923
934
|
name?: string | undefined;
|
|
935
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
924
936
|
fallbacks?: Array<CreateImageEditFallbacks$Outbound> | undefined;
|
|
925
937
|
retry?: CreateImageEditRetry$Outbound | undefined;
|
|
926
938
|
cache?: CreateImageEditCache$Outbound | undefined;
|
|
@@ -944,6 +956,7 @@ export const CreateImageEditRequestBody$outboundSchema: z.ZodType<
|
|
|
944
956
|
responseFormat: CreateImageEditResponseFormat$outboundSchema.optional(),
|
|
945
957
|
user: z.string().optional(),
|
|
946
958
|
name: z.string().optional(),
|
|
959
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
947
960
|
fallbacks: z.array(z.lazy(() => CreateImageEditFallbacks$outboundSchema))
|
|
948
961
|
.optional(),
|
|
949
962
|
retry: z.lazy(() => CreateImageEditRetry$outboundSchema).optional(),
|
|
@@ -955,6 +968,7 @@ export const CreateImageEditRequestBody$outboundSchema: z.ZodType<
|
|
|
955
968
|
}).transform((v) => {
|
|
956
969
|
return remap$(v, {
|
|
957
970
|
responseFormat: "response_format",
|
|
971
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
958
972
|
loadBalancer: "load_balancer",
|
|
959
973
|
});
|
|
960
974
|
});
|
|
@@ -234,6 +234,10 @@ export type CreateImageVariationOrq = {
|
|
|
234
234
|
* Retry configuration for the request
|
|
235
235
|
*/
|
|
236
236
|
retry?: CreateImageVariationRouterImagesVariationsRetry | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
239
|
+
*/
|
|
240
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
237
241
|
/**
|
|
238
242
|
* Array of fallback models to use if primary model fails
|
|
239
243
|
*/
|
|
@@ -302,6 +306,10 @@ export type CreateImageVariationRequestBody = {
|
|
|
302
306
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
303
307
|
*/
|
|
304
308
|
name?: string | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
311
|
+
*/
|
|
312
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
305
313
|
/**
|
|
306
314
|
* Array of fallback models to use if primary model fails
|
|
307
315
|
*/
|
|
@@ -879,6 +887,7 @@ export function createImageVariationRouterImagesVariationsTimeoutToJSON(
|
|
|
879
887
|
export type CreateImageVariationOrq$Outbound = {
|
|
880
888
|
name?: string | undefined;
|
|
881
889
|
retry?: CreateImageVariationRouterImagesVariationsRetry$Outbound | undefined;
|
|
890
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
882
891
|
fallbacks?:
|
|
883
892
|
| Array<CreateImageVariationRouterImagesVariationsFallbacks$Outbound>
|
|
884
893
|
| undefined;
|
|
@@ -904,6 +913,7 @@ export const CreateImageVariationOrq$outboundSchema: z.ZodType<
|
|
|
904
913
|
retry: z.lazy(() =>
|
|
905
914
|
CreateImageVariationRouterImagesVariationsRetry$outboundSchema
|
|
906
915
|
).optional(),
|
|
916
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
907
917
|
fallbacks: z.array(
|
|
908
918
|
z.lazy(() =>
|
|
909
919
|
CreateImageVariationRouterImagesVariationsFallbacks$outboundSchema
|
|
@@ -923,6 +933,7 @@ export const CreateImageVariationOrq$outboundSchema: z.ZodType<
|
|
|
923
933
|
).optional(),
|
|
924
934
|
}).transform((v) => {
|
|
925
935
|
return remap$(v, {
|
|
936
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
926
937
|
loadBalancer: "load_balancer",
|
|
927
938
|
});
|
|
928
939
|
});
|
|
@@ -944,6 +955,7 @@ export type CreateImageVariationRequestBody$Outbound = {
|
|
|
944
955
|
size: string;
|
|
945
956
|
user?: string | undefined;
|
|
946
957
|
name?: string | undefined;
|
|
958
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
947
959
|
fallbacks?: Array<CreateImageVariationFallbacks$Outbound> | undefined;
|
|
948
960
|
retry?: CreateImageVariationRetry$Outbound | undefined;
|
|
949
961
|
cache?: CreateImageVariationCache$Outbound | undefined;
|
|
@@ -969,6 +981,7 @@ export const CreateImageVariationRequestBody$outboundSchema: z.ZodType<
|
|
|
969
981
|
size: Size$outboundSchema.default("1024x1024"),
|
|
970
982
|
user: z.string().optional(),
|
|
971
983
|
name: z.string().optional(),
|
|
984
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
972
985
|
fallbacks: z.array(z.lazy(() => CreateImageVariationFallbacks$outboundSchema))
|
|
973
986
|
.optional(),
|
|
974
987
|
retry: z.lazy(() => CreateImageVariationRetry$outboundSchema).optional(),
|
|
@@ -980,6 +993,7 @@ export const CreateImageVariationRequestBody$outboundSchema: z.ZodType<
|
|
|
980
993
|
}).transform((v) => {
|
|
981
994
|
return remap$(v, {
|
|
982
995
|
responseFormat: "response_format",
|
|
996
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
983
997
|
loadBalancer: "load_balancer",
|
|
984
998
|
});
|
|
985
999
|
});
|
|
@@ -933,6 +933,10 @@ export type PromptInput = {
|
|
|
933
933
|
| components.TraceScrubbingPlugin
|
|
934
934
|
>
|
|
935
935
|
| undefined;
|
|
936
|
+
/**
|
|
937
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
938
|
+
*/
|
|
939
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
936
940
|
/**
|
|
937
941
|
* Array of fallback models to use if primary model fails
|
|
938
942
|
*/
|
|
@@ -2454,6 +2458,10 @@ export type PromptField = {
|
|
|
2454
2458
|
| components.TraceScrubbingPlugin
|
|
2455
2459
|
>
|
|
2456
2460
|
| undefined;
|
|
2461
|
+
/**
|
|
2462
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
2463
|
+
*/
|
|
2464
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
2457
2465
|
/**
|
|
2458
2466
|
* Array of fallback models to use if primary model fails
|
|
2459
2467
|
*/
|
|
@@ -3950,6 +3958,7 @@ export type PromptInput$Outbound = {
|
|
|
3950
3958
|
| components.TraceScrubbingPlugin$Outbound
|
|
3951
3959
|
>
|
|
3952
3960
|
| undefined;
|
|
3961
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
3953
3962
|
fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
|
|
3954
3963
|
retry?: CreatePromptRetry$Outbound | undefined;
|
|
3955
3964
|
cache?: CreatePromptCache$Outbound | undefined;
|
|
@@ -4020,6 +4029,7 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
4020
4029
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
4021
4030
|
]),
|
|
4022
4031
|
).optional(),
|
|
4032
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
4023
4033
|
fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
|
|
4024
4034
|
.optional(),
|
|
4025
4035
|
retry: z.lazy(() => CreatePromptRetry$outboundSchema).optional(),
|
|
@@ -4044,6 +4054,7 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
4044
4054
|
topK: "top_k",
|
|
4045
4055
|
toolChoice: "tool_choice",
|
|
4046
4056
|
parallelToolCalls: "parallel_tool_calls",
|
|
4057
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
4047
4058
|
loadBalancer: "load_balancer",
|
|
4048
4059
|
cacheControl: "cache_control",
|
|
4049
4060
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -5891,6 +5902,7 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5891
5902
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
5892
5903
|
]),
|
|
5893
5904
|
).optional(),
|
|
5905
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
5894
5906
|
fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
|
|
5895
5907
|
.optional(),
|
|
5896
5908
|
retry: z.lazy(() => CreatePromptPromptsRetry$inboundSchema).optional(),
|
|
@@ -5925,6 +5937,7 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5925
5937
|
"top_k": "topK",
|
|
5926
5938
|
"tool_choice": "toolChoice",
|
|
5927
5939
|
"parallel_tool_calls": "parallelToolCalls",
|
|
5940
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
5928
5941
|
"load_balancer": "loadBalancer",
|
|
5929
5942
|
"cache_control": "cacheControl",
|
|
5930
5943
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -172,6 +172,10 @@ export type CreateRerankOrq = {
|
|
|
172
172
|
* Array of fallback models to use if primary model fails
|
|
173
173
|
*/
|
|
174
174
|
fallbacks?: Array<CreateRerankRouterRerankFallbacks> | undefined;
|
|
175
|
+
/**
|
|
176
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
177
|
+
*/
|
|
178
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
175
179
|
/**
|
|
176
180
|
* Cache configuration for the request.
|
|
177
181
|
*/
|
|
@@ -232,6 +236,10 @@ export type CreateRerankRequestBody = {
|
|
|
232
236
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
233
237
|
*/
|
|
234
238
|
name?: string | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
241
|
+
*/
|
|
242
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
235
243
|
/**
|
|
236
244
|
* Array of fallback models to use if primary model fails
|
|
237
245
|
*/
|
|
@@ -707,6 +715,7 @@ export function createRerankRouterRerankTimeoutToJSON(
|
|
|
707
715
|
export type CreateRerankOrq$Outbound = {
|
|
708
716
|
name?: string | undefined;
|
|
709
717
|
fallbacks?: Array<CreateRerankRouterRerankFallbacks$Outbound> | undefined;
|
|
718
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
710
719
|
cache?: CreateRerankRouterRerankCache$Outbound | undefined;
|
|
711
720
|
retry?: CreateRerankRouterRerankRetry$Outbound | undefined;
|
|
712
721
|
identity?: components.PublicIdentity$Outbound | undefined;
|
|
@@ -725,6 +734,7 @@ export const CreateRerankOrq$outboundSchema: z.ZodType<
|
|
|
725
734
|
fallbacks: z.array(
|
|
726
735
|
z.lazy(() => CreateRerankRouterRerankFallbacks$outboundSchema),
|
|
727
736
|
).optional(),
|
|
737
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
728
738
|
cache: z.lazy(() => CreateRerankRouterRerankCache$outboundSchema).optional(),
|
|
729
739
|
retry: z.lazy(() => CreateRerankRouterRerankRetry$outboundSchema).optional(),
|
|
730
740
|
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
@@ -736,6 +746,7 @@ export const CreateRerankOrq$outboundSchema: z.ZodType<
|
|
|
736
746
|
.optional(),
|
|
737
747
|
}).transform((v) => {
|
|
738
748
|
return remap$(v, {
|
|
749
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
739
750
|
loadBalancer: "load_balancer",
|
|
740
751
|
});
|
|
741
752
|
});
|
|
@@ -755,6 +766,7 @@ export type CreateRerankRequestBody$Outbound = {
|
|
|
755
766
|
return_documents?: boolean | undefined;
|
|
756
767
|
filename?: string | null | undefined;
|
|
757
768
|
name?: string | undefined;
|
|
769
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
758
770
|
fallbacks?: Array<CreateRerankFallbacks$Outbound> | undefined;
|
|
759
771
|
retry?: CreateRerankRetry$Outbound | undefined;
|
|
760
772
|
cache?: CreateRerankCache$Outbound | undefined;
|
|
@@ -777,6 +789,7 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
|
|
|
777
789
|
returnDocuments: z.boolean().optional(),
|
|
778
790
|
filename: z.nullable(z.string()).optional(),
|
|
779
791
|
name: z.string().optional(),
|
|
792
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
780
793
|
fallbacks: z.array(z.lazy(() => CreateRerankFallbacks$outboundSchema))
|
|
781
794
|
.optional(),
|
|
782
795
|
retry: z.lazy(() => CreateRerankRetry$outboundSchema).optional(),
|
|
@@ -790,6 +803,7 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
|
|
|
790
803
|
return remap$(v, {
|
|
791
804
|
topN: "top_n",
|
|
792
805
|
returnDocuments: "return_documents",
|
|
806
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
793
807
|
loadBalancer: "load_balancer",
|
|
794
808
|
});
|
|
795
809
|
});
|
|
@@ -883,6 +883,10 @@ export type CreateRouterResponseRequestBody = {
|
|
|
883
883
|
*/
|
|
884
884
|
cacheControl?: CreateRouterResponseCacheControl | undefined;
|
|
885
885
|
conversation?: components.ConversationParam | undefined;
|
|
886
|
+
/**
|
|
887
|
+
* HTTP status codes that trigger fallback. Defaults to [408,429,500,502,503,504,529]. Each code must be unique and between 400 and 599.
|
|
888
|
+
*/
|
|
889
|
+
fallbackOnCodes?: Array<number> | null | undefined;
|
|
886
890
|
/**
|
|
887
891
|
* Fallback models to try if the primary model fails. Each entry specifies a model in provider/model format.
|
|
888
892
|
*/
|
|
@@ -2097,6 +2101,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2097
2101
|
cache?: components.CacheConfig$Outbound | undefined;
|
|
2098
2102
|
cache_control?: CreateRouterResponseCacheControl$Outbound | undefined;
|
|
2099
2103
|
conversation?: components.ConversationParam$Outbound | undefined;
|
|
2104
|
+
fallback_on_codes?: Array<number> | null | undefined;
|
|
2100
2105
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
2101
2106
|
frequency_penalty?: number | undefined;
|
|
2102
2107
|
guardrails?: Array<components.EvaluatorRef$Outbound> | undefined;
|
|
@@ -2179,6 +2184,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2179
2184
|
cacheControl: z.lazy(() => CreateRouterResponseCacheControl$outboundSchema)
|
|
2180
2185
|
.optional(),
|
|
2181
2186
|
conversation: components.ConversationParam$outboundSchema.optional(),
|
|
2187
|
+
fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
|
|
2182
2188
|
fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
|
|
2183
2189
|
.optional(),
|
|
2184
2190
|
frequencyPenalty: z.number().optional(),
|
|
@@ -2298,6 +2304,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2298
2304
|
}).transform((v) => {
|
|
2299
2305
|
return remap$(v, {
|
|
2300
2306
|
cacheControl: "cache_control",
|
|
2307
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
2301
2308
|
frequencyPenalty: "frequency_penalty",
|
|
2302
2309
|
integrationId: "integration_id",
|
|
2303
2310
|
loadBalancer: "load_balancer",
|
|
@@ -167,6 +167,10 @@ export type CreateSpeechOrq = {
|
|
|
167
167
|
* Array of fallback models to use if primary model fails
|
|
168
168
|
*/
|
|
169
169
|
fallbacks?: Array<CreateSpeechRouterAudioSpeechFallbacks> | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
172
|
+
*/
|
|
173
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
170
174
|
/**
|
|
171
175
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
172
176
|
*/
|
|
@@ -233,6 +237,10 @@ export type CreateSpeechRequestBody = {
|
|
|
233
237
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
234
238
|
*/
|
|
235
239
|
name?: string | undefined;
|
|
240
|
+
/**
|
|
241
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
242
|
+
*/
|
|
243
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
236
244
|
/**
|
|
237
245
|
* Array of fallback models to use if primary model fails
|
|
238
246
|
*/
|
|
@@ -608,6 +616,7 @@ export type CreateSpeechOrq$Outbound = {
|
|
|
608
616
|
fallbacks?:
|
|
609
617
|
| Array<CreateSpeechRouterAudioSpeechFallbacks$Outbound>
|
|
610
618
|
| undefined;
|
|
619
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
611
620
|
name?: string | undefined;
|
|
612
621
|
identity?: components.PublicIdentity$Outbound | undefined;
|
|
613
622
|
contact?: components.PublicContact$Outbound | undefined;
|
|
@@ -629,6 +638,7 @@ export const CreateSpeechOrq$outboundSchema: z.ZodType<
|
|
|
629
638
|
fallbacks: z.array(
|
|
630
639
|
z.lazy(() => CreateSpeechRouterAudioSpeechFallbacks$outboundSchema),
|
|
631
640
|
).optional(),
|
|
641
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
632
642
|
name: z.string().optional(),
|
|
633
643
|
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
634
644
|
contact: components.PublicContact$outboundSchema.optional(),
|
|
@@ -640,6 +650,7 @@ export const CreateSpeechOrq$outboundSchema: z.ZodType<
|
|
|
640
650
|
.optional(),
|
|
641
651
|
}).transform((v) => {
|
|
642
652
|
return remap$(v, {
|
|
653
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
643
654
|
loadBalancer: "load_balancer",
|
|
644
655
|
});
|
|
645
656
|
});
|
|
@@ -658,6 +669,7 @@ export type CreateSpeechRequestBody$Outbound = {
|
|
|
658
669
|
response_format: string;
|
|
659
670
|
speed: number;
|
|
660
671
|
name?: string | undefined;
|
|
672
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
661
673
|
fallbacks?: Array<CreateSpeechFallbacks$Outbound> | undefined;
|
|
662
674
|
retry?: CreateSpeechRetry$Outbound | undefined;
|
|
663
675
|
load_balancer?: CreateSpeechLoadBalancer1$Outbound | undefined;
|
|
@@ -677,6 +689,7 @@ export const CreateSpeechRequestBody$outboundSchema: z.ZodType<
|
|
|
677
689
|
responseFormat: CreateSpeechResponseFormat$outboundSchema.default("mp3"),
|
|
678
690
|
speed: z.number().default(1),
|
|
679
691
|
name: z.string().optional(),
|
|
692
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
680
693
|
fallbacks: z.array(z.lazy(() => CreateSpeechFallbacks$outboundSchema))
|
|
681
694
|
.optional(),
|
|
682
695
|
retry: z.lazy(() => CreateSpeechRetry$outboundSchema).optional(),
|
|
@@ -687,6 +700,7 @@ export const CreateSpeechRequestBody$outboundSchema: z.ZodType<
|
|
|
687
700
|
}).transform((v) => {
|
|
688
701
|
return remap$(v, {
|
|
689
702
|
responseFormat: "response_format",
|
|
703
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
690
704
|
loadBalancer: "load_balancer",
|
|
691
705
|
});
|
|
692
706
|
});
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M4TYMSA3WR4ZEGGZ685JE58K"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M4TYMSA25Z7TTSXDH249A59W"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M4TYMSA1QDPAKBHFQ4353SG8"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M4TYMSA0R0DV9CT61DZ2TQFG"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -178,6 +178,10 @@ export type CreateTranscriptionOrq = {
|
|
|
178
178
|
fallbacks?:
|
|
179
179
|
| Array<CreateTranscriptionRouterAudioTranscriptionsFallbacks>
|
|
180
180
|
| undefined;
|
|
181
|
+
/**
|
|
182
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
183
|
+
*/
|
|
184
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
181
185
|
/**
|
|
182
186
|
* Retry configuration for the request
|
|
183
187
|
*/
|
|
@@ -261,6 +265,10 @@ export type CreateTranscriptionRequestBody = {
|
|
|
261
265
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
262
266
|
*/
|
|
263
267
|
name?: string | undefined;
|
|
268
|
+
/**
|
|
269
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
270
|
+
*/
|
|
271
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
264
272
|
/**
|
|
265
273
|
* Array of fallback models to use if primary model fails
|
|
266
274
|
*/
|
|
@@ -687,6 +695,7 @@ export type CreateTranscriptionOrq$Outbound = {
|
|
|
687
695
|
fallbacks?:
|
|
688
696
|
| Array<CreateTranscriptionRouterAudioTranscriptionsFallbacks$Outbound>
|
|
689
697
|
| undefined;
|
|
698
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
690
699
|
retry?:
|
|
691
700
|
| CreateTranscriptionRouterAudioTranscriptionsRetry$Outbound
|
|
692
701
|
| undefined;
|
|
@@ -712,6 +721,7 @@ export const CreateTranscriptionOrq$outboundSchema: z.ZodType<
|
|
|
712
721
|
CreateTranscriptionRouterAudioTranscriptionsFallbacks$outboundSchema
|
|
713
722
|
),
|
|
714
723
|
).optional(),
|
|
724
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
715
725
|
retry: z.lazy(() =>
|
|
716
726
|
CreateTranscriptionRouterAudioTranscriptionsRetry$outboundSchema
|
|
717
727
|
).optional(),
|
|
@@ -725,6 +735,7 @@ export const CreateTranscriptionOrq$outboundSchema: z.ZodType<
|
|
|
725
735
|
).optional(),
|
|
726
736
|
}).transform((v) => {
|
|
727
737
|
return remap$(v, {
|
|
738
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
728
739
|
loadBalancer: "load_balancer",
|
|
729
740
|
});
|
|
730
741
|
});
|
|
@@ -776,6 +787,7 @@ export type CreateTranscriptionRequestBody$Outbound = {
|
|
|
776
787
|
language?: string | undefined;
|
|
777
788
|
timestamp_granularities?: Array<string> | undefined;
|
|
778
789
|
name?: string | undefined;
|
|
790
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
779
791
|
fallbacks?: Array<CreateTranscriptionFallbacks$Outbound> | undefined;
|
|
780
792
|
retry?: CreateTranscriptionRetry$Outbound | undefined;
|
|
781
793
|
load_balancer?: CreateTranscriptionLoadBalancer1$Outbound | undefined;
|
|
@@ -803,6 +815,7 @@ export const CreateTranscriptionRequestBody$outboundSchema: z.ZodType<
|
|
|
803
815
|
timestampGranularities: z.array(TimestampGranularities$outboundSchema)
|
|
804
816
|
.optional(),
|
|
805
817
|
name: z.string().optional(),
|
|
818
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
806
819
|
fallbacks: z.array(z.lazy(() => CreateTranscriptionFallbacks$outboundSchema))
|
|
807
820
|
.optional(),
|
|
808
821
|
retry: z.lazy(() => CreateTranscriptionRetry$outboundSchema).optional(),
|
|
@@ -819,6 +832,7 @@ export const CreateTranscriptionRequestBody$outboundSchema: z.ZodType<
|
|
|
819
832
|
numSpeakers: "num_speakers",
|
|
820
833
|
timestampsGranularity: "timestamps_granularity",
|
|
821
834
|
timestampGranularities: "timestamp_granularities",
|
|
835
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
822
836
|
loadBalancer: "load_balancer",
|
|
823
837
|
});
|
|
824
838
|
});
|
|
@@ -172,6 +172,10 @@ export type CreateTranslationOrq = {
|
|
|
172
172
|
fallbacks?:
|
|
173
173
|
| Array<CreateTranslationRouterAudioTranslationsFallbacks>
|
|
174
174
|
| undefined;
|
|
175
|
+
/**
|
|
176
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
177
|
+
*/
|
|
178
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
175
179
|
/**
|
|
176
180
|
* Retry configuration for the request
|
|
177
181
|
*/
|
|
@@ -247,6 +251,10 @@ export type CreateTranslationRequestBody = {
|
|
|
247
251
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
248
252
|
*/
|
|
249
253
|
name?: string | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
256
|
+
*/
|
|
257
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
250
258
|
/**
|
|
251
259
|
* Array of fallback models to use if primary model fails
|
|
252
260
|
*/
|
|
@@ -665,6 +673,7 @@ export type CreateTranslationOrq$Outbound = {
|
|
|
665
673
|
fallbacks?:
|
|
666
674
|
| Array<CreateTranslationRouterAudioTranslationsFallbacks$Outbound>
|
|
667
675
|
| undefined;
|
|
676
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
668
677
|
retry?: CreateTranslationRouterAudioTranslationsRetry$Outbound | undefined;
|
|
669
678
|
identity?: components.PublicIdentity$Outbound | undefined;
|
|
670
679
|
contact?: components.PublicContact$Outbound | undefined;
|
|
@@ -688,6 +697,7 @@ export const CreateTranslationOrq$outboundSchema: z.ZodType<
|
|
|
688
697
|
CreateTranslationRouterAudioTranslationsFallbacks$outboundSchema
|
|
689
698
|
),
|
|
690
699
|
).optional(),
|
|
700
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
691
701
|
retry: z.lazy(() =>
|
|
692
702
|
CreateTranslationRouterAudioTranslationsRetry$outboundSchema
|
|
693
703
|
).optional(),
|
|
@@ -701,6 +711,7 @@ export const CreateTranslationOrq$outboundSchema: z.ZodType<
|
|
|
701
711
|
).optional(),
|
|
702
712
|
}).transform((v) => {
|
|
703
713
|
return remap$(v, {
|
|
714
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
704
715
|
loadBalancer: "load_balancer",
|
|
705
716
|
});
|
|
706
717
|
});
|
|
@@ -754,6 +765,7 @@ export type CreateTranslationRequestBody$Outbound = {
|
|
|
754
765
|
timestamps_granularity: string;
|
|
755
766
|
temperature?: number | undefined;
|
|
756
767
|
name?: string | undefined;
|
|
768
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
757
769
|
fallbacks?: Array<CreateTranslationFallbacks$Outbound> | undefined;
|
|
758
770
|
retry?: CreateTranslationRetry$Outbound | undefined;
|
|
759
771
|
load_balancer?: CreateTranslationLoadBalancer1$Outbound | undefined;
|
|
@@ -779,6 +791,7 @@ export const CreateTranslationRequestBody$outboundSchema: z.ZodType<
|
|
|
779
791
|
.default("word"),
|
|
780
792
|
temperature: z.number().optional(),
|
|
781
793
|
name: z.string().optional(),
|
|
794
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
782
795
|
fallbacks: z.array(z.lazy(() => CreateTranslationFallbacks$outboundSchema))
|
|
783
796
|
.optional(),
|
|
784
797
|
retry: z.lazy(() => CreateTranslationRetry$outboundSchema).optional(),
|
|
@@ -795,6 +808,7 @@ export const CreateTranslationRequestBody$outboundSchema: z.ZodType<
|
|
|
795
808
|
tagAudioEvents: "tag_audio_events",
|
|
796
809
|
numSpeakers: "num_speakers",
|
|
797
810
|
timestampsGranularity: "timestamps_granularity",
|
|
811
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
798
812
|
loadBalancer: "load_balancer",
|
|
799
813
|
});
|
|
800
814
|
});
|
|
@@ -1475,6 +1475,10 @@ export type GetAllPromptsPromptField = {
|
|
|
1475
1475
|
| components.TraceScrubbingPlugin
|
|
1476
1476
|
>
|
|
1477
1477
|
| undefined;
|
|
1478
|
+
/**
|
|
1479
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
1480
|
+
*/
|
|
1481
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
1478
1482
|
/**
|
|
1479
1483
|
* Array of fallback models to use if primary model fails
|
|
1480
1484
|
*/
|
|
@@ -3358,6 +3362,7 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
3358
3362
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
3359
3363
|
]),
|
|
3360
3364
|
).optional(),
|
|
3365
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
3361
3366
|
fallbacks: z.array(z.lazy(() => GetAllPromptsFallbacks$inboundSchema))
|
|
3362
3367
|
.optional(),
|
|
3363
3368
|
retry: z.lazy(() => GetAllPromptsRetry$inboundSchema).optional(),
|
|
@@ -3392,6 +3397,7 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
3392
3397
|
"top_k": "topK",
|
|
3393
3398
|
"tool_choice": "toolChoice",
|
|
3394
3399
|
"parallel_tool_calls": "parallelToolCalls",
|
|
3400
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
3395
3401
|
"load_balancer": "loadBalancer",
|
|
3396
3402
|
"cache_control": "cacheControl",
|
|
3397
3403
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M4TYMS9WTMJ1P55ENEW3HYFQ"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M4TYMS9TQA4Z8CHF6T9SFGCN"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M4TYMS9TVE2S9FYRXFC47CC9"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M4TYMS9SNHKHH5PJ354PPSR1"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|