@thanh01.pmt/curriculum-kit 1.4.4 → 1.4.6
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 +58 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -14
- package/dist/index.d.ts +22 -14
- package/dist/index.mjs +58 -29
- 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 +8 -4
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +8 -4
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/media/index.d.cts
CHANGED
package/dist/media/index.d.ts
CHANGED
package/dist/media/index.mjs
CHANGED
|
@@ -502,8 +502,8 @@ function extractThoughtAndContent(rawText) {
|
|
|
502
502
|
content: content.trim()
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
var DEFAULT_ARTIFACT_STREAM_IDLE_MS =
|
|
506
|
-
var DEFAULT_ARTIFACT_STREAM_TOTAL_MS =
|
|
505
|
+
var DEFAULT_ARTIFACT_STREAM_IDLE_MS = 9e4;
|
|
506
|
+
var DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 48e4;
|
|
507
507
|
function createStreamAbortController(options) {
|
|
508
508
|
const envIdle = Number(process.env.ARTIFACT_STREAM_IDLE_TIMEOUT_MS || process.env.STREAM_IDLE_TIMEOUT_MS);
|
|
509
509
|
const envTotal = Number(process.env.ARTIFACT_STREAM_TOTAL_TIMEOUT_MS || process.env.STREAM_TOTAL_TIMEOUT_MS);
|
|
@@ -718,7 +718,9 @@ Guidelines:
|
|
|
718
718
|
if (isNvidiaPreferred || uniqueNvidiaModels.length > 0) {
|
|
719
719
|
for (const model of uniqueNvidiaModels) {
|
|
720
720
|
try {
|
|
721
|
-
const
|
|
721
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
722
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
723
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
722
724
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
723
725
|
method: "POST",
|
|
724
726
|
headers: {
|
|
@@ -915,7 +917,9 @@ Guidelines:
|
|
|
915
917
|
const { provider, model } = target;
|
|
916
918
|
if (provider === "nvidia" && nvidiaKey && isProviderEnabled("nvidia")) {
|
|
917
919
|
try {
|
|
918
|
-
const
|
|
920
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
921
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
922
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
919
923
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
920
924
|
method: "POST",
|
|
921
925
|
headers: {
|