@wix/auto_sdk_ai-gateway_generators 1.0.9 → 1.0.11
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/cjs/index.d.ts
CHANGED
|
@@ -4134,20 +4134,18 @@ interface TextToImageRequest {
|
|
|
4134
4134
|
/**
|
|
4135
4135
|
* 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.
|
|
4136
4136
|
* 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.
|
|
4137
|
-
* The length of the prompt must be between 2 and
|
|
4138
|
-
* @maxLength
|
|
4137
|
+
* The length of the prompt must be between 2 and 3000 characters.
|
|
4138
|
+
* @maxLength 1000000
|
|
4139
4139
|
*/
|
|
4140
4140
|
positivePrompt?: string;
|
|
4141
4141
|
/**
|
|
4142
4142
|
* Used to define the height dimension of the generated image. Certain models perform better with specific dimensions.
|
|
4143
4143
|
* The value must be divisible by 64, eg: 128...512, 576, 640...2048.
|
|
4144
|
-
* @max 2048
|
|
4145
4144
|
*/
|
|
4146
4145
|
height?: number;
|
|
4147
4146
|
/**
|
|
4148
4147
|
* Used to define the width dimension of the generated image. Certain models perform better with specific dimensions.
|
|
4149
4148
|
* The value must be divisible by 64, eg: 128...512, 576, 640...2048.
|
|
4150
|
-
* @max 2048
|
|
4151
4149
|
*/
|
|
4152
4150
|
width?: number;
|
|
4153
4151
|
/**
|
|
@@ -7084,10 +7082,26 @@ declare enum FinishReason {
|
|
|
7084
7082
|
/** The token generation was stopped as the response was flagged for unauthorized citations. */
|
|
7085
7083
|
RECITATION = "RECITATION",
|
|
7086
7084
|
/** All other reasons that stopped the token */
|
|
7087
|
-
OTHER = "OTHER"
|
|
7085
|
+
OTHER = "OTHER",
|
|
7086
|
+
/** The response candidate content was flagged for using an unsupported language. */
|
|
7087
|
+
LANGUAGE = "LANGUAGE",
|
|
7088
|
+
/** Token generation stopped because the content contains forbidden terms. */
|
|
7089
|
+
BLOCKLIST = "BLOCKLIST",
|
|
7090
|
+
/** Token generation stopped for potentially containing prohibited content. */
|
|
7091
|
+
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
|
|
7092
|
+
/** Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII). */
|
|
7093
|
+
SPII = "SPII",
|
|
7094
|
+
/** The function call generated by the model is invalid. */
|
|
7095
|
+
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
|
|
7096
|
+
/** Token generation stopped because generated images contain safety violations. */
|
|
7097
|
+
IMAGE_SAFETY = "IMAGE_SAFETY",
|
|
7098
|
+
/** Model generated a tool call but no tools were enabled in the request. */
|
|
7099
|
+
UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL",
|
|
7100
|
+
/** Model called too many tools consecutively, thus the system exited execution. */
|
|
7101
|
+
TOO_MANY_TOOL_CALLS = "TOO_MANY_TOOL_CALLS"
|
|
7088
7102
|
}
|
|
7089
7103
|
/** @enumType */
|
|
7090
|
-
type FinishReasonWithLiterals = FinishReason | 'UNKNOWN_FINISH_REASON' | 'UNSPECIFIED' | 'STOP' | 'MAX_TOKENS' | 'SAFETY' | 'RECITATION' | 'OTHER';
|
|
7104
|
+
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';
|
|
7091
7105
|
interface SafetyRating {
|
|
7092
7106
|
/** The safety category that the response belongs to. */
|
|
7093
7107
|
category?: HarmCategoryWithLiterals;
|
package/build/cjs/index.js
CHANGED
|
@@ -3691,6 +3691,14 @@ var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
|
|
|
3691
3691
|
FinishReason2["SAFETY"] = "SAFETY";
|
|
3692
3692
|
FinishReason2["RECITATION"] = "RECITATION";
|
|
3693
3693
|
FinishReason2["OTHER"] = "OTHER";
|
|
3694
|
+
FinishReason2["LANGUAGE"] = "LANGUAGE";
|
|
3695
|
+
FinishReason2["BLOCKLIST"] = "BLOCKLIST";
|
|
3696
|
+
FinishReason2["PROHIBITED_CONTENT"] = "PROHIBITED_CONTENT";
|
|
3697
|
+
FinishReason2["SPII"] = "SPII";
|
|
3698
|
+
FinishReason2["MALFORMED_FUNCTION_CALL"] = "MALFORMED_FUNCTION_CALL";
|
|
3699
|
+
FinishReason2["IMAGE_SAFETY"] = "IMAGE_SAFETY";
|
|
3700
|
+
FinishReason2["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
|
|
3701
|
+
FinishReason2["TOO_MANY_TOOL_CALLS"] = "TOO_MANY_TOOL_CALLS";
|
|
3694
3702
|
return FinishReason2;
|
|
3695
3703
|
})(FinishReason || {});
|
|
3696
3704
|
var HarmProbability = /* @__PURE__ */ ((HarmProbability2) => {
|