@thanh01.pmt/curriculum-kit 1.0.16 → 1.0.17
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.cjs +0 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.mjs +0 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13572,15 +13572,6 @@ function extractStreamChunk(part) {
|
|
|
13572
13572
|
const content = part.text ?? part.delta ?? "";
|
|
13573
13573
|
return content ? { content } : {};
|
|
13574
13574
|
}
|
|
13575
|
-
if (part.type === "raw") {
|
|
13576
|
-
const raw = part.rawValue;
|
|
13577
|
-
const delta = raw?.choices?.[0]?.delta;
|
|
13578
|
-
const reasoning = delta?.reasoning_content ?? delta?.reasoning ?? raw?.delta?.reasoning_content ?? raw?.delta?.reasoning;
|
|
13579
|
-
if (typeof reasoning === "string" && reasoning) return { thought: reasoning };
|
|
13580
|
-
const text = delta?.content ?? raw?.delta?.content;
|
|
13581
|
-
if (typeof text === "string" && text) return { content: text };
|
|
13582
|
-
return {};
|
|
13583
|
-
}
|
|
13584
13575
|
return {};
|
|
13585
13576
|
}
|
|
13586
13577
|
function createStreamAbortSignal(budget) {
|