@wix/auto_sdk_ai-gateway_prompts 1.0.2 → 1.0.4
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 +20 -6
- 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 +20 -6
- package/build/cjs/meta.js +8 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +20 -6
- 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 +20 -6
- 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 +20 -6
- 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 +20 -6
- 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 +20 -6
- 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 +20 -6
- package/build/internal/es/meta.mjs +8 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -4163,20 +4163,18 @@ interface TextToImageRequest {
|
|
|
4163
4163
|
/**
|
|
4164
4164
|
* A positive prompt is a text instruction to guide the model on generating the image. It is usually a sentence or a paragraph that provides positive guidance for the task. This parameter is essential to shape the desired results.
|
|
4165
4165
|
* For example, if the positive prompt is "dragon drinking coffee", the model will generate an image of a dragon drinking coffee. The more detailed the prompt, the more accurate the results.
|
|
4166
|
-
* The length of the prompt must be between 2 and
|
|
4167
|
-
* @maxLength
|
|
4166
|
+
* The length of the prompt must be between 2 and 3000 characters.
|
|
4167
|
+
* @maxLength 1000000
|
|
4168
4168
|
*/
|
|
4169
4169
|
positivePrompt?: string;
|
|
4170
4170
|
/**
|
|
4171
4171
|
* Used to define the height dimension of the generated image. Certain models perform better with specific dimensions.
|
|
4172
4172
|
* The value must be divisible by 64, eg: 128...512, 576, 640...2048.
|
|
4173
|
-
* @max 2048
|
|
4174
4173
|
*/
|
|
4175
4174
|
height?: number;
|
|
4176
4175
|
/**
|
|
4177
4176
|
* Used to define the width dimension of the generated image. Certain models perform better with specific dimensions.
|
|
4178
4177
|
* The value must be divisible by 64, eg: 128...512, 576, 640...2048.
|
|
4179
|
-
* @max 2048
|
|
4180
4178
|
*/
|
|
4181
4179
|
width?: number;
|
|
4182
4180
|
/**
|
|
@@ -7237,10 +7235,26 @@ declare enum FinishReason {
|
|
|
7237
7235
|
/** The token generation was stopped as the response was flagged for unauthorized citations. */
|
|
7238
7236
|
RECITATION = "RECITATION",
|
|
7239
7237
|
/** All other reasons that stopped the token */
|
|
7240
|
-
OTHER = "OTHER"
|
|
7238
|
+
OTHER = "OTHER",
|
|
7239
|
+
/** The response candidate content was flagged for using an unsupported language. */
|
|
7240
|
+
LANGUAGE = "LANGUAGE",
|
|
7241
|
+
/** Token generation stopped because the content contains forbidden terms. */
|
|
7242
|
+
BLOCKLIST = "BLOCKLIST",
|
|
7243
|
+
/** Token generation stopped for potentially containing prohibited content. */
|
|
7244
|
+
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
|
|
7245
|
+
/** Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII). */
|
|
7246
|
+
SPII = "SPII",
|
|
7247
|
+
/** The function call generated by the model is invalid. */
|
|
7248
|
+
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
|
|
7249
|
+
/** Token generation stopped because generated images contain safety violations. */
|
|
7250
|
+
IMAGE_SAFETY = "IMAGE_SAFETY",
|
|
7251
|
+
/** Model generated a tool call but no tools were enabled in the request. */
|
|
7252
|
+
UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL",
|
|
7253
|
+
/** Model called too many tools consecutively, thus the system exited execution. */
|
|
7254
|
+
TOO_MANY_TOOL_CALLS = "TOO_MANY_TOOL_CALLS"
|
|
7241
7255
|
}
|
|
7242
7256
|
/** @enumType */
|
|
7243
|
-
type FinishReasonWithLiterals = FinishReason | 'UNKNOWN_FINISH_REASON' | 'UNSPECIFIED' | 'STOP' | 'MAX_TOKENS' | 'SAFETY' | 'RECITATION' | 'OTHER';
|
|
7257
|
+
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';
|
|
7244
7258
|
interface SafetyRating {
|
|
7245
7259
|
/** The safety category that the response belongs to. */
|
|
7246
7260
|
category?: HarmCategoryWithLiterals;
|
package/build/es/index.mjs
CHANGED
|
@@ -1069,6 +1069,14 @@ var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
|
|
|
1069
1069
|
FinishReason2["SAFETY"] = "SAFETY";
|
|
1070
1070
|
FinishReason2["RECITATION"] = "RECITATION";
|
|
1071
1071
|
FinishReason2["OTHER"] = "OTHER";
|
|
1072
|
+
FinishReason2["LANGUAGE"] = "LANGUAGE";
|
|
1073
|
+
FinishReason2["BLOCKLIST"] = "BLOCKLIST";
|
|
1074
|
+
FinishReason2["PROHIBITED_CONTENT"] = "PROHIBITED_CONTENT";
|
|
1075
|
+
FinishReason2["SPII"] = "SPII";
|
|
1076
|
+
FinishReason2["MALFORMED_FUNCTION_CALL"] = "MALFORMED_FUNCTION_CALL";
|
|
1077
|
+
FinishReason2["IMAGE_SAFETY"] = "IMAGE_SAFETY";
|
|
1078
|
+
FinishReason2["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
|
|
1079
|
+
FinishReason2["TOO_MANY_TOOL_CALLS"] = "TOO_MANY_TOOL_CALLS";
|
|
1072
1080
|
return FinishReason2;
|
|
1073
1081
|
})(FinishReason || {});
|
|
1074
1082
|
var HarmProbability = /* @__PURE__ */ ((HarmProbability2) => {
|