@acedatacloud/sdk 2026.824.0 → 2026.905.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 +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/providers/fish.ts +8 -7
- package/src/resources/providers/seedream.ts +34 -34
package/dist/index.mjs
CHANGED
|
@@ -1544,13 +1544,13 @@ var Fish = class {
|
|
|
1544
1544
|
if (options.minChunkLength !== void 0) body["min_chunk_length"] = options.minChunkLength;
|
|
1545
1545
|
if (options.repetitionPenalty !== void 0) body["repetition_penalty"] = options.repetitionPenalty;
|
|
1546
1546
|
for (const [key, value] of Object.entries(options)) {
|
|
1547
|
-
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) {
|
|
1547
|
+
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) {
|
|
1548
1548
|
body[key] = value;
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
1551
|
if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
|
|
1552
1552
|
body.async = options.async ?? true;
|
|
1553
|
-
const result = await this.transport.request("POST", "/fish/tts", { json: body });
|
|
1553
|
+
const result = await this.transport.request("POST", "/fish/tts", { json: body, headers: options.model !== void 0 ? { "model": options.model } : {} });
|
|
1554
1554
|
const handle = new TaskHandle(taskId3(result), "/fish/tasks", this.transport, result);
|
|
1555
1555
|
if (options.wait) {
|
|
1556
1556
|
await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
|
|
@@ -2068,25 +2068,25 @@ var Seedream = class {
|
|
|
2068
2068
|
this.transport = transport;
|
|
2069
2069
|
}
|
|
2070
2070
|
transport;
|
|
2071
|
-
/**
|
|
2071
|
+
/** Call /seedream/images. */
|
|
2072
2072
|
async generate(options) {
|
|
2073
2073
|
const body = {};
|
|
2074
2074
|
body["model"] = options.model;
|
|
2075
|
-
body["prompt"] = options.prompt;
|
|
2076
|
-
if (options.seed !== void 0) body["seed"] = options.seed;
|
|
2077
|
-
if (options.size !== void 0) body["size"] = options.size;
|
|
2075
|
+
if (options.prompt !== void 0) body["prompt"] = options.prompt;
|
|
2078
2076
|
if (options.image !== void 0) body["image"] = options.image;
|
|
2079
|
-
if (options.
|
|
2077
|
+
if (options.size !== void 0) body["size"] = options.size;
|
|
2078
|
+
if (options.sequentialImageGeneration !== void 0) body["sequential_image_generation"] = options.sequentialImageGeneration;
|
|
2079
|
+
if (options.sequentialImageGenerationOptions !== void 0) body["sequential_image_generation_options"] = options.sequentialImageGenerationOptions;
|
|
2080
2080
|
if (options.stream !== void 0) body["stream"] = options.stream;
|
|
2081
|
+
if (options.responseFormat !== void 0) body["response_format"] = options.responseFormat;
|
|
2081
2082
|
if (options.watermark !== void 0) body["watermark"] = options.watermark;
|
|
2082
2083
|
if (options.outputFormat !== void 0) body["output_format"] = options.outputFormat;
|
|
2083
|
-
if (options.
|
|
2084
|
-
if (options.responseFormat !== void 0) body["response_format"] = options.responseFormat;
|
|
2084
|
+
if (options.tools !== void 0) body["tools"] = options.tools;
|
|
2085
2085
|
if (options.optimizePromptOptions !== void 0) body["optimize_prompt_options"] = options.optimizePromptOptions;
|
|
2086
|
-
if (options.
|
|
2087
|
-
if (options.
|
|
2086
|
+
if (options.layerDecomposition !== void 0) body["layer_decomposition"] = options.layerDecomposition;
|
|
2087
|
+
if (options.background !== void 0) body["background"] = options.background;
|
|
2088
2088
|
for (const [key, value] of Object.entries(options)) {
|
|
2089
|
-
if (!["async", "
|
|
2089
|
+
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) {
|
|
2090
2090
|
body[key] = value;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|