@wix/auto_sdk_ai-gateway_generators 1.0.77 → 1.0.78
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/build/cjs/index.d.ts +242 -4
- package/build/cjs/index.js +91 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +91 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +236 -2
- package/build/cjs/meta.js +87 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +242 -4
- package/build/es/index.mjs +91 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +91 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +236 -2
- package/build/es/meta.mjs +87 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js +91 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +252 -14
- package/build/internal/cjs/index.typings.js +91 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +236 -2
- package/build/internal/cjs/meta.js +87 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs +91 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +252 -14
- package/build/internal/es/index.typings.mjs +91 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +236 -2
- package/build/internal/es/meta.mjs +87 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -110,6 +110,12 @@ function generateTextByPrompt(payload) {
|
|
|
110
110
|
{
|
|
111
111
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
118
|
+
},
|
|
113
119
|
{ path: "response.openAiResponsesResponse.temperature" },
|
|
114
120
|
{
|
|
115
121
|
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
@@ -316,6 +322,12 @@ function generateTextByPromptStreamed(payload) {
|
|
|
316
322
|
{
|
|
317
323
|
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
318
324
|
},
|
|
325
|
+
{
|
|
326
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.probabilityScore"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.severityScore"
|
|
330
|
+
},
|
|
319
331
|
{
|
|
320
332
|
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
321
333
|
isRepeated: true
|
|
@@ -458,6 +470,12 @@ function generateTextByPromptObject(payload) {
|
|
|
458
470
|
{
|
|
459
471
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
460
472
|
},
|
|
473
|
+
{
|
|
474
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
478
|
+
},
|
|
461
479
|
{ path: "response.openAiResponsesResponse.temperature" },
|
|
462
480
|
{
|
|
463
481
|
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
@@ -757,6 +775,12 @@ function generateTextByPromptObjectStreamed(payload) {
|
|
|
757
775
|
{
|
|
758
776
|
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
759
777
|
},
|
|
778
|
+
{
|
|
779
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.probabilityScore"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.severityScore"
|
|
783
|
+
},
|
|
760
784
|
{
|
|
761
785
|
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
762
786
|
isRepeated: true
|
|
@@ -846,6 +870,12 @@ function generateTextByProject(payload) {
|
|
|
846
870
|
{
|
|
847
871
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
848
872
|
},
|
|
873
|
+
{
|
|
874
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
878
|
+
},
|
|
849
879
|
{ path: "response.openAiResponsesResponse.temperature" },
|
|
850
880
|
{
|
|
851
881
|
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
@@ -1052,6 +1082,12 @@ function generateTextByProjectStreamed(payload) {
|
|
|
1052
1082
|
{
|
|
1053
1083
|
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
1054
1084
|
},
|
|
1085
|
+
{
|
|
1086
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.probabilityScore"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.severityScore"
|
|
1090
|
+
},
|
|
1055
1091
|
{
|
|
1056
1092
|
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
1057
1093
|
isRepeated: true
|
|
@@ -1779,6 +1815,12 @@ function generateContentByPrompt(payload) {
|
|
|
1779
1815
|
{
|
|
1780
1816
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
1781
1817
|
},
|
|
1818
|
+
{
|
|
1819
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
1823
|
+
},
|
|
1782
1824
|
{
|
|
1783
1825
|
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1784
1826
|
isRepeated: true
|
|
@@ -1990,6 +2032,12 @@ function generateContentByProject(payload) {
|
|
|
1990
2032
|
{
|
|
1991
2033
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
1992
2034
|
},
|
|
2035
|
+
{
|
|
2036
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
2040
|
+
},
|
|
1993
2041
|
{
|
|
1994
2042
|
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1995
2043
|
isRepeated: true
|
|
@@ -2294,6 +2342,12 @@ function generateContentByPromptObject(payload) {
|
|
|
2294
2342
|
{
|
|
2295
2343
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
2296
2344
|
},
|
|
2345
|
+
{
|
|
2346
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
2350
|
+
},
|
|
2297
2351
|
{
|
|
2298
2352
|
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
2299
2353
|
isRepeated: true
|
|
@@ -2999,7 +3053,38 @@ function editImage(payload) {
|
|
|
2999
3053
|
{ path: "replicateEditImageResponse.metrics.predictTime" },
|
|
3000
3054
|
{ path: "replicateEditImageResponse.metrics.totalTime" },
|
|
3001
3055
|
{ path: "replicateExtractFromImageResponse.metrics.extractTime" },
|
|
3002
|
-
{ path: "replicateExtractFromImageResponse.metrics.totalTime" }
|
|
3056
|
+
{ path: "replicateExtractFromImageResponse.metrics.totalTime" },
|
|
3057
|
+
{ path: "googleDetectTextResponse.textAnnotations.confidence" },
|
|
3058
|
+
{
|
|
3059
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.confidence"
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.property.detectedLanguages.confidence"
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.confidence"
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.property.detectedLanguages.confidence"
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.confidence"
|
|
3072
|
+
},
|
|
3073
|
+
{
|
|
3074
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.property.detectedLanguages.confidence"
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.confidence"
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.property.detectedLanguages.confidence"
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.symbols.confidence"
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.symbols.property.detectedLanguages.confidence"
|
|
3087
|
+
}
|
|
3003
3088
|
]
|
|
3004
3089
|
}
|
|
3005
3090
|
])
|
|
@@ -3748,6 +3833,7 @@ var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
|
|
|
3748
3833
|
FinishReason2["SPII"] = "SPII";
|
|
3749
3834
|
FinishReason2["MALFORMED_FUNCTION_CALL"] = "MALFORMED_FUNCTION_CALL";
|
|
3750
3835
|
FinishReason2["IMAGE_SAFETY"] = "IMAGE_SAFETY";
|
|
3836
|
+
FinishReason2["MODEL_ARMOR"] = "MODEL_ARMOR";
|
|
3751
3837
|
FinishReason2["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
|
|
3752
3838
|
FinishReason2["TOO_MANY_TOOL_CALLS"] = "TOO_MANY_TOOL_CALLS";
|
|
3753
3839
|
FinishReason2["IMAGE_PROHIBITED_CONTENT"] = "IMAGE_PROHIBITED_CONTENT";
|
|
@@ -4702,7 +4788,8 @@ async function editImage2(options) {
|
|
|
4702
4788
|
stabilityAiEditRequest: options?.stabilityAiEditRequest,
|
|
4703
4789
|
replicateEditImageRequest: options?.replicateEditImageRequest,
|
|
4704
4790
|
recraftEditImageRequest: options?.recraftEditImageRequest,
|
|
4705
|
-
replicateExtractFromImageRequest: options?.replicateExtractFromImageRequest
|
|
4791
|
+
replicateExtractFromImageRequest: options?.replicateExtractFromImageRequest,
|
|
4792
|
+
googleDetectTextRequest: options?.googleDetectTextRequest
|
|
4706
4793
|
});
|
|
4707
4794
|
const reqOpts = editImage(payload);
|
|
4708
4795
|
sideEffects?.onSiteCall?.();
|
|
@@ -4722,7 +4809,8 @@ async function editImage2(options) {
|
|
|
4722
4809
|
stabilityAiEditRequest: "$[0].stabilityAiEditRequest",
|
|
4723
4810
|
replicateEditImageRequest: "$[0].replicateEditImageRequest",
|
|
4724
4811
|
recraftEditImageRequest: "$[0].recraftEditImageRequest",
|
|
4725
|
-
replicateExtractFromImageRequest: "$[0].replicateExtractFromImageRequest"
|
|
4812
|
+
replicateExtractFromImageRequest: "$[0].replicateExtractFromImageRequest",
|
|
4813
|
+
googleDetectTextRequest: "$[0].googleDetectTextRequest"
|
|
4726
4814
|
},
|
|
4727
4815
|
singleArgumentUnchanged: false
|
|
4728
4816
|
},
|