@acedatacloud/sdk 2026.824.0 → 2026.909.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 CHANGED
@@ -1592,13 +1592,13 @@ var Fish = class {
1592
1592
  if (options.minChunkLength !== void 0) body["min_chunk_length"] = options.minChunkLength;
1593
1593
  if (options.repetitionPenalty !== void 0) body["repetition_penalty"] = options.repetitionPenalty;
1594
1594
  for (const [key, value] of Object.entries(options)) {
1595
- if (!["async", "callbackUrl", "chunkLength", "format", "latency", "maxNewTokens", "maxWait", "minChunkLength", "mp3Bitrate", "normalize", "opusBitrate", "pollInterval", "prosody", "referenceId", "references", "repetitionPenalty", "sampleRate", "temperature", "text", "topP", "wait"].includes(key) && value !== void 0) {
1595
+ if (!["async", "callbackUrl", "chunkLength", "format", "latency", "maxNewTokens", "maxWait", "minChunkLength", "model", "mp3Bitrate", "normalize", "opusBitrate", "pollInterval", "prosody", "referenceId", "references", "repetitionPenalty", "sampleRate", "temperature", "text", "topP", "wait"].includes(key) && value !== void 0) {
1596
1596
  body[key] = value;
1597
1597
  }
1598
1598
  }
1599
1599
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
1600
1600
  body.async = options.async ?? true;
1601
- const result = await this.transport.request("POST", "/fish/tts", { json: body });
1601
+ const result = await this.transport.request("POST", "/fish/tts", { json: body, headers: options.model !== void 0 ? { "model": options.model } : {} });
1602
1602
  const handle = new TaskHandle(taskId3(result), "/fish/tasks", this.transport, result);
1603
1603
  if (options.wait) {
1604
1604
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
@@ -2116,25 +2116,25 @@ var Seedream = class {
2116
2116
  this.transport = transport;
2117
2117
  }
2118
2118
  transport;
2119
- /** ByteDance Seedream high-quality image generation and editing API. Supports text-to-image models doubao-seedream-3-0-t2i-250415, doubao-seedream-4-0-250828, doubao-seedream-4-5-251128, doubao-seedream- */
2119
+ /** Call /seedream/images. */
2120
2120
  async generate(options) {
2121
2121
  const body = {};
2122
2122
  body["model"] = options.model;
2123
- body["prompt"] = options.prompt;
2124
- if (options.seed !== void 0) body["seed"] = options.seed;
2125
- if (options.size !== void 0) body["size"] = options.size;
2123
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
2126
2124
  if (options.image !== void 0) body["image"] = options.image;
2127
- if (options.tools !== void 0) body["tools"] = options.tools;
2125
+ if (options.size !== void 0) body["size"] = options.size;
2126
+ if (options.sequentialImageGeneration !== void 0) body["sequential_image_generation"] = options.sequentialImageGeneration;
2127
+ if (options.sequentialImageGenerationOptions !== void 0) body["sequential_image_generation_options"] = options.sequentialImageGenerationOptions;
2128
2128
  if (options.stream !== void 0) body["stream"] = options.stream;
2129
+ if (options.responseFormat !== void 0) body["response_format"] = options.responseFormat;
2129
2130
  if (options.watermark !== void 0) body["watermark"] = options.watermark;
2130
2131
  if (options.outputFormat !== void 0) body["output_format"] = options.outputFormat;
2131
- if (options.guidanceScale !== void 0) body["guidance_scale"] = options.guidanceScale;
2132
- if (options.responseFormat !== void 0) body["response_format"] = options.responseFormat;
2132
+ if (options.tools !== void 0) body["tools"] = options.tools;
2133
2133
  if (options.optimizePromptOptions !== void 0) body["optimize_prompt_options"] = options.optimizePromptOptions;
2134
- if (options.sequentialImageGeneration !== void 0) body["sequential_image_generation"] = options.sequentialImageGeneration;
2135
- if (options.sequentialImageGenerationOptions !== void 0) body["sequential_image_generation_options"] = options.sequentialImageGenerationOptions;
2134
+ if (options.layerDecomposition !== void 0) body["layer_decomposition"] = options.layerDecomposition;
2135
+ if (options.background !== void 0) body["background"] = options.background;
2136
2136
  for (const [key, value] of Object.entries(options)) {
2137
- if (!["async", "callbackUrl", "guidanceScale", "image", "maxWait", "model", "optimizePromptOptions", "outputFormat", "pollInterval", "prompt", "responseFormat", "seed", "sequentialImageGeneration", "sequentialImageGenerationOptions", "size", "stream", "tools", "wait", "watermark"].includes(key) && value !== void 0) {
2137
+ if (!["async", "background", "callbackUrl", "image", "layerDecomposition", "maxWait", "model", "optimizePromptOptions", "outputFormat", "pollInterval", "prompt", "responseFormat", "sequentialImageGeneration", "sequentialImageGenerationOptions", "size", "stream", "tools", "wait", "watermark"].includes(key) && value !== void 0) {
2138
2138
  body[key] = value;
2139
2139
  }
2140
2140
  }