@lingjingai/scriptctl 0.63.6 → 0.63.7
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/changes/0.63.7.md +4 -0
- package/dist/bin.js +1 -3
- package/dist/bin.js.map +2 -2
- package/dist/infra/llm/doubao-model.js +2 -3
- package/dist/infra/llm/doubao-model.js.map +1 -1
- package/package.json +17 -18
package/dist/bin.js
CHANGED
|
@@ -7032,7 +7032,6 @@ var DoubaoModel = class {
|
|
|
7032
7032
|
async generateOnce(fileId, request2) {
|
|
7033
7033
|
const params = {
|
|
7034
7034
|
model: this.model,
|
|
7035
|
-
max_output_tokens: request2.maxOutputTokens,
|
|
7036
7035
|
input: [{ role: "user", content: [
|
|
7037
7036
|
{ type: "input_video", file_id: fileId },
|
|
7038
7037
|
{ type: "input_text", text: request2.user }
|
|
@@ -7069,7 +7068,6 @@ var DoubaoModel = class {
|
|
|
7069
7068
|
textParams(request2) {
|
|
7070
7069
|
return {
|
|
7071
7070
|
model: this.model,
|
|
7072
|
-
max_output_tokens: request2.maxOutputTokens,
|
|
7073
7071
|
instructions: request2.system,
|
|
7074
7072
|
input: [{ role: "user", content: [{ type: "input_text", text: request2.user }] }]
|
|
7075
7073
|
};
|
|
@@ -7086,7 +7084,7 @@ var DoubaoModel = class {
|
|
|
7086
7084
|
const usage3 = arkUsage(res.usage);
|
|
7087
7085
|
if (status === "incomplete") {
|
|
7088
7086
|
const reason = res.incomplete_details?.reason ?? "unknown";
|
|
7089
|
-
if (reason === "max_output_tokens") throw new LlmTransportError("truncated", "Doubao output was truncated.", { usage: usage3 });
|
|
7087
|
+
if (reason === "max_output_tokens" || reason === "length") throw new LlmTransportError("truncated", "Doubao output was truncated.", { usage: usage3 });
|
|
7090
7088
|
throw new LlmTransportError("content_filtered", `Doubao response incomplete (reason=${reason}).`, { usage: usage3 });
|
|
7091
7089
|
}
|
|
7092
7090
|
const text2 = extractText(res);
|