billion-context 0.1.53-pr.239.81 → 0.1.53

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
@@ -50295,7 +50295,6 @@ async function* runCompressLoop(upstream, ctx, requestBody, requestOptions, adap
50295
50295
  const calls = [];
50296
50296
  let usage = {};
50297
50297
  let finishReason;
50298
- let sawDone = false;
50299
50298
  let suppressCompletion = false;
50300
50299
  for await (const ev of adapter.parseStream(currentUpstream, round)) {
50301
50300
  if (signal?.aborted) break;
@@ -50333,7 +50332,6 @@ async function* runCompressLoop(upstream, ctx, requestBody, requestOptions, adap
50333
50332
  cachedTokens: ev.cachedTokens
50334
50333
  };
50335
50334
  } else if (ev.kind === "done") {
50336
- sawDone = true;
50337
50335
  finishReason = ev.finishReason;
50338
50336
  suppressCompletion = ev.suppressCompletion === true;
50339
50337
  } else if (ev.kind === "meta") {
@@ -50455,15 +50453,6 @@ async function* runCompressLoop(upstream, ctx, requestBody, requestOptions, adap
50455
50453
  }
50456
50454
  const reRequest = proxyResults.length > 0 && realCalls === 0;
50457
50455
  if (!reRequest) {
50458
- if (!sawDone) {
50459
- const partialText = assistantText.length;
50460
- const partialReasoning = assistantReasoning.length;
50461
- const msg = `upstream stream truncated (no completion event; round ${round}, ${partialText} text chars + ${partialReasoning} reasoning chars received)`;
50462
- ctx.log(`[acp-loop] round ${round}: ${msg}`);
50463
- log("error", `[acp-loop] ${msg}`);
50464
- yield adapter.emitError(msg);
50465
- return;
50466
- }
50467
50456
  if (!suppressCompletion) {
50468
50457
  yield adapter.emitCompletion({ finishReason, usage });
50469
50458
  }