billion-context 0.1.46-pr.202.1 → 0.1.46
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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50419,7 +50419,7 @@ ${systemPrompt}` : systemPrompt;
|
|
|
50419
50419
|
yield {
|
|
50420
50420
|
kind: "reasoning",
|
|
50421
50421
|
delta: delta.thinking,
|
|
50422
|
-
raw: remapIndexInEvent(eventStr, ci2)
|
|
50422
|
+
...round === 1 ? { raw: remapIndexInEvent(eventStr, ci2) } : {}
|
|
50423
50423
|
};
|
|
50424
50424
|
} else if (delta.type === "signature_delta" && typeof delta.signature === "string") {
|
|
50425
50425
|
const ci2 = indexMap.get(upstreamIndex) ?? upstreamIndex;
|
|
@@ -50427,7 +50427,7 @@ ${systemPrompt}` : systemPrompt;
|
|
|
50427
50427
|
kind: "reasoning",
|
|
50428
50428
|
delta: "",
|
|
50429
50429
|
signature: delta.signature,
|
|
50430
|
-
raw: remapIndexInEvent(eventStr, ci2)
|
|
50430
|
+
...round === 1 ? { raw: remapIndexInEvent(eventStr, ci2) } : {}
|
|
50431
50431
|
};
|
|
50432
50432
|
} else if (round === 1) {
|
|
50433
50433
|
const ci2 = indexMap.get(upstreamIndex) ?? upstreamIndex;
|
|
@@ -50445,8 +50445,10 @@ ${systemPrompt}` : systemPrompt;
|
|
|
50445
50445
|
arguments: tb.json
|
|
50446
50446
|
};
|
|
50447
50447
|
} else if (thinkingIndexes.delete(upstreamIndex)) {
|
|
50448
|
-
|
|
50449
|
-
|
|
50448
|
+
if (round === 1) {
|
|
50449
|
+
const ci2 = indexMap.get(upstreamIndex) ?? upstreamIndex;
|
|
50450
|
+
yield { kind: "meta", chunk: remapIndexInEvent(eventStr, ci2), firstRoundOnly: true };
|
|
50451
|
+
}
|
|
50450
50452
|
yield { kind: "reasoning", delta: "", blockEnd: true };
|
|
50451
50453
|
} else {
|
|
50452
50454
|
const ci2 = indexMap.get(upstreamIndex) ?? upstreamIndex;
|