@thanh01.pmt/curriculum-kit 1.4.4 → 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 +44 -15
- 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 +44 -16
- 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
|
@@ -71,8 +71,8 @@ declare function extractThoughtAndContent(rawText: string): {
|
|
|
71
71
|
thought: string;
|
|
72
72
|
content: string;
|
|
73
73
|
};
|
|
74
|
-
declare const DEFAULT_ARTIFACT_STREAM_IDLE_MS =
|
|
75
|
-
declare const DEFAULT_ARTIFACT_STREAM_TOTAL_MS =
|
|
74
|
+
declare const DEFAULT_ARTIFACT_STREAM_IDLE_MS = 90000;
|
|
75
|
+
declare const DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 480000;
|
|
76
76
|
interface StreamAbortController {
|
|
77
77
|
signal: AbortSignal;
|
|
78
78
|
/** Reset the idle window (call on every received chunk). */
|
|
@@ -71,8 +71,8 @@ declare function extractThoughtAndContent(rawText: string): {
|
|
|
71
71
|
thought: string;
|
|
72
72
|
content: string;
|
|
73
73
|
};
|
|
74
|
-
declare const DEFAULT_ARTIFACT_STREAM_IDLE_MS =
|
|
75
|
-
declare const DEFAULT_ARTIFACT_STREAM_TOTAL_MS =
|
|
74
|
+
declare const DEFAULT_ARTIFACT_STREAM_IDLE_MS = 90000;
|
|
75
|
+
declare const DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 480000;
|
|
76
76
|
interface StreamAbortController {
|
|
77
77
|
signal: AbortSignal;
|
|
78
78
|
/** Reset the idle window (call on every received chunk). */
|
package/dist/workflow/index.cjs
CHANGED
|
@@ -503,7 +503,9 @@ Guidelines:
|
|
|
503
503
|
if (isNvidiaPreferred || uniqueNvidiaModels.length > 0) {
|
|
504
504
|
for (const model of uniqueNvidiaModels) {
|
|
505
505
|
try {
|
|
506
|
-
const
|
|
506
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
507
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
508
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
507
509
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
508
510
|
method: "POST",
|
|
509
511
|
headers: {
|
|
@@ -700,7 +702,9 @@ Guidelines:
|
|
|
700
702
|
const { provider, model } = target;
|
|
701
703
|
if (provider === "nvidia" && nvidiaKey && isProviderEnabled("nvidia")) {
|
|
702
704
|
try {
|
|
703
|
-
const
|
|
705
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
706
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
707
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
704
708
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
705
709
|
method: "POST",
|
|
706
710
|
headers: {
|
|
@@ -851,8 +855,8 @@ var DEFAULT_ARTIFACT_STREAM_IDLE_MS, DEFAULT_ARTIFACT_STREAM_TOTAL_MS;
|
|
|
851
855
|
var init_streamRunner = __esm({
|
|
852
856
|
"src/ai/streamRunner.ts"() {
|
|
853
857
|
init_errors();
|
|
854
|
-
DEFAULT_ARTIFACT_STREAM_IDLE_MS =
|
|
855
|
-
DEFAULT_ARTIFACT_STREAM_TOTAL_MS =
|
|
858
|
+
DEFAULT_ARTIFACT_STREAM_IDLE_MS = 9e4;
|
|
859
|
+
DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 48e4;
|
|
856
860
|
}
|
|
857
861
|
});
|
|
858
862
|
|