@wix/auto_sdk_ai-gateway_prompts 1.0.2 → 1.0.3
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 +18 -2
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +8 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +18 -2
- package/build/cjs/meta.js +8 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -2
- package/build/es/index.mjs +8 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +8 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +18 -2
- package/build/es/meta.mjs +8 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +8 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +18 -2
- package/build/internal/cjs/index.typings.js +8 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +18 -2
- package/build/internal/cjs/meta.js +8 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +8 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +18 -2
- package/build/internal/es/index.typings.mjs +8 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +18 -2
- package/build/internal/es/meta.mjs +8 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -7239,10 +7239,26 @@ declare enum FinishReason {
|
|
|
7239
7239
|
/** The token generation was stopped as the response was flagged for unauthorized citations. */
|
|
7240
7240
|
RECITATION = "RECITATION",
|
|
7241
7241
|
/** All other reasons that stopped the token */
|
|
7242
|
-
OTHER = "OTHER"
|
|
7242
|
+
OTHER = "OTHER",
|
|
7243
|
+
/** The response candidate content was flagged for using an unsupported language. */
|
|
7244
|
+
LANGUAGE = "LANGUAGE",
|
|
7245
|
+
/** Token generation stopped because the content contains forbidden terms. */
|
|
7246
|
+
BLOCKLIST = "BLOCKLIST",
|
|
7247
|
+
/** Token generation stopped for potentially containing prohibited content. */
|
|
7248
|
+
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
|
|
7249
|
+
/** Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII). */
|
|
7250
|
+
SPII = "SPII",
|
|
7251
|
+
/** The function call generated by the model is invalid. */
|
|
7252
|
+
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
|
|
7253
|
+
/** Token generation stopped because generated images contain safety violations. */
|
|
7254
|
+
IMAGE_SAFETY = "IMAGE_SAFETY",
|
|
7255
|
+
/** Model generated a tool call but no tools were enabled in the request. */
|
|
7256
|
+
UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL",
|
|
7257
|
+
/** Model called too many tools consecutively, thus the system exited execution. */
|
|
7258
|
+
TOO_MANY_TOOL_CALLS = "TOO_MANY_TOOL_CALLS"
|
|
7243
7259
|
}
|
|
7244
7260
|
/** @enumType */
|
|
7245
|
-
type FinishReasonWithLiterals = FinishReason | 'UNKNOWN_FINISH_REASON' | 'UNSPECIFIED' | 'STOP' | 'MAX_TOKENS' | 'SAFETY' | 'RECITATION' | 'OTHER';
|
|
7261
|
+
type FinishReasonWithLiterals = FinishReason | 'UNKNOWN_FINISH_REASON' | 'UNSPECIFIED' | 'STOP' | 'MAX_TOKENS' | 'SAFETY' | 'RECITATION' | 'OTHER' | 'LANGUAGE' | 'BLOCKLIST' | 'PROHIBITED_CONTENT' | 'SPII' | 'MALFORMED_FUNCTION_CALL' | 'IMAGE_SAFETY' | 'UNEXPECTED_TOOL_CALL' | 'TOO_MANY_TOOL_CALLS';
|
|
7246
7262
|
interface SafetyRating {
|
|
7247
7263
|
/** The safety category that the response belongs to. */
|
|
7248
7264
|
category?: HarmCategoryWithLiterals;
|
|
@@ -1166,6 +1166,14 @@ var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
|
|
|
1166
1166
|
FinishReason2["SAFETY"] = "SAFETY";
|
|
1167
1167
|
FinishReason2["RECITATION"] = "RECITATION";
|
|
1168
1168
|
FinishReason2["OTHER"] = "OTHER";
|
|
1169
|
+
FinishReason2["LANGUAGE"] = "LANGUAGE";
|
|
1170
|
+
FinishReason2["BLOCKLIST"] = "BLOCKLIST";
|
|
1171
|
+
FinishReason2["PROHIBITED_CONTENT"] = "PROHIBITED_CONTENT";
|
|
1172
|
+
FinishReason2["SPII"] = "SPII";
|
|
1173
|
+
FinishReason2["MALFORMED_FUNCTION_CALL"] = "MALFORMED_FUNCTION_CALL";
|
|
1174
|
+
FinishReason2["IMAGE_SAFETY"] = "IMAGE_SAFETY";
|
|
1175
|
+
FinishReason2["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
|
|
1176
|
+
FinishReason2["TOO_MANY_TOOL_CALLS"] = "TOO_MANY_TOOL_CALLS";
|
|
1169
1177
|
return FinishReason2;
|
|
1170
1178
|
})(FinishReason || {});
|
|
1171
1179
|
var HarmProbability = /* @__PURE__ */ ((HarmProbability2) => {
|