@lingjingai/scriptctl 0.63.5 → 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,5 @@
1
+ # 0.63.6
2
+
3
+ - 审核 Agent 在实际 Gemini/豆包适配器收到响应时记录 provider、model 和用量,模型切换后归属到真正执行请求的模型。
4
+ - 每次响应仅记录一次用量,保留内容过滤响应和已成功工具操作的用量;暂时性错误重试不会重复计入成功响应。
5
+ - 豆包 Agent 使用显式 OpenAI-compatible 适配器,固定官方火山方舟地址并复用代理传输配置。
@@ -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);