@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.
@@ -0,0 +1,4 @@
1
+ # 0.63.7
2
+
3
+ - 豆包文本、结构化与视频请求不再传递输出 token 上限。
4
+ - 豆包返回 `incomplete/length` 时正确识别为输出截断,避免误报为内容审核拦截。
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);