billion-context 0.1.35 → 0.1.36
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48578,6 +48578,8 @@ async function* runCompressLoop(upstream, ctx, requestBody, requestOptions, adap
|
|
|
48578
48578
|
assistantText += ev.delta;
|
|
48579
48579
|
if (!ctx.textProtocol && round === 1 && ev.raw) {
|
|
48580
48580
|
yield ev.raw;
|
|
48581
|
+
} else if (!ctx.textProtocol && round > 1 && ev.delta.length > 0) {
|
|
48582
|
+
yield adapter.emitText(ev.delta);
|
|
48581
48583
|
}
|
|
48582
48584
|
} else if (ev.kind === "tool_call") {
|
|
48583
48585
|
calls.push({ name: ev.name, callId: ev.callId, arguments: ev.arguments });
|
|
@@ -48608,8 +48610,6 @@ async function* runCompressLoop(upstream, ctx, requestBody, requestOptions, adap
|
|
|
48608
48610
|
const functionCallIds = new Set(calls.map((c) => c.callId));
|
|
48609
48611
|
if (ctx.textProtocol && resolvedText.length > 0) {
|
|
48610
48612
|
yield adapter.emitText(resolvedText);
|
|
48611
|
-
} else if (!ctx.textProtocol && round > 1 && resolvedText.length > 0) {
|
|
48612
|
-
yield adapter.emitText(resolvedText);
|
|
48613
48613
|
}
|
|
48614
48614
|
let realCalls = 0;
|
|
48615
48615
|
const realToolCalls = [];
|