@thanh01.pmt/curriculum-kit 1.4.3 → 1.4.5
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/ai/index.cjs +8 -4
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/index.mjs +8 -4
- package/dist/ai/index.mjs.map +1 -1
- package/dist/index.cjs +46 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +46 -18
- package/dist/index.mjs.map +1 -1
- package/dist/media/index.cjs +8 -4
- package/dist/media/index.cjs.map +1 -1
- package/dist/media/index.d.cts +1 -1
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.mjs +8 -4
- package/dist/media/index.mjs.map +1 -1
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.mjs.map +1 -1
- package/dist/{streamRunner-DtQq0HV_.d.cts → streamRunner-CYESG6IE.d.cts} +2 -2
- package/dist/{streamRunner-DtQq0HV_.d.ts → streamRunner-CYESG6IE.d.ts} +2 -2
- package/dist/workflow/index.cjs +9 -5
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +9 -5
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/media/index.cjs
CHANGED
|
@@ -509,8 +509,8 @@ function extractThoughtAndContent(rawText) {
|
|
|
509
509
|
content: content.trim()
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
var DEFAULT_ARTIFACT_STREAM_IDLE_MS =
|
|
513
|
-
var DEFAULT_ARTIFACT_STREAM_TOTAL_MS =
|
|
512
|
+
var DEFAULT_ARTIFACT_STREAM_IDLE_MS = 9e4;
|
|
513
|
+
var DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 48e4;
|
|
514
514
|
function createStreamAbortController(options) {
|
|
515
515
|
const envIdle = Number(process.env.ARTIFACT_STREAM_IDLE_TIMEOUT_MS || process.env.STREAM_IDLE_TIMEOUT_MS);
|
|
516
516
|
const envTotal = Number(process.env.ARTIFACT_STREAM_TOTAL_TIMEOUT_MS || process.env.STREAM_TOTAL_TIMEOUT_MS);
|
|
@@ -725,7 +725,9 @@ Guidelines:
|
|
|
725
725
|
if (isNvidiaPreferred || uniqueNvidiaModels.length > 0) {
|
|
726
726
|
for (const model of uniqueNvidiaModels) {
|
|
727
727
|
try {
|
|
728
|
-
const
|
|
728
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
729
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
730
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
729
731
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
730
732
|
method: "POST",
|
|
731
733
|
headers: {
|
|
@@ -922,7 +924,9 @@ Guidelines:
|
|
|
922
924
|
const { provider, model } = target;
|
|
923
925
|
if (provider === "nvidia" && nvidiaKey && isProviderEnabled("nvidia")) {
|
|
924
926
|
try {
|
|
925
|
-
const
|
|
927
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
928
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
929
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
926
930
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
927
931
|
method: "POST",
|
|
928
932
|
headers: {
|