@acedatacloud/sdk 2026.809.0 → 2026.810.0
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/providers/seedream.ts +3 -3
package/package.json
CHANGED
|
@@ -23,8 +23,8 @@ export interface SeedreamGenerateOptions {
|
|
|
23
23
|
prompt: string;
|
|
24
24
|
/** Generate a random seed for image generation. The supported range is [-1, 2147483647], with a default value of `-1`. **Only `doubao-seedream-3.0-t2i` supports this parameter** (according to the official Volcengine documentation), other models do not accept this parameter. */
|
|
25
25
|
seed?: number;
|
|
26
|
-
/** Generate image dimensions or aspect ratios. Supports preset options (`1K`/`2K`/`3K`/`4K`),
|
|
27
|
-
size?: "1K" | "2K" | "3K" | "4K"
|
|
26
|
+
/** Generate image dimensions or aspect ratios. Supports preset options (`1K`/`2K`/`3K`/`4K`), or explicit `<width>x<height>` format (e.g., `1024x1024`). **Different models support different preset options**: `doubao-seedream-5.0-pro` supports `1K`/`2K`; `doubao-seedream-5.0-lite` supports `2K`/`3K`/`4K`; `doubao-seedream-4.5` only supports `2K`/`4K`; `doubao-seedream-4.0` supports `1K`/`2K`/`4K`; `doubao-seedream-3.0-t2i` and `doubao-seedream-3.0-i2i` **do not support** any preset options and must receive explicit `<width>x<height>` values. */
|
|
27
|
+
size?: "1K" | "2K" | "3K" | "4K";
|
|
28
28
|
/** Reference image links for image editing are required, supporting accessible http/https URLs, or base64 encoded image strings in the format `data:image/png;base64,iVBORw0KG...`. Each image must not exceed 10MB in size. This parameter is mandatory when using image-to-image models (such as `doubao-seededit-3.0-i2i`). */
|
|
29
29
|
image?: string[];
|
|
30
30
|
/** List of tools that can be called by the model. Currently, only `web_search` is supported. Applicable only to `doubao-seedream-5.0-lite`. */
|
|
@@ -66,7 +66,7 @@ export class Seedream {
|
|
|
66
66
|
body["model"] = options.model;
|
|
67
67
|
body["prompt"] = options.prompt;
|
|
68
68
|
if (options.seed !== undefined) body["seed"] = options.seed;
|
|
69
|
-
body["size"] = options.size
|
|
69
|
+
if (options.size !== undefined) body["size"] = options.size;
|
|
70
70
|
if (options.image !== undefined) body["image"] = options.image;
|
|
71
71
|
if (options.tools !== undefined) body["tools"] = options.tools;
|
|
72
72
|
if (options.stream !== undefined) body["stream"] = options.stream;
|