@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/workflow/index.mjs
CHANGED
|
@@ -494,7 +494,9 @@ Guidelines:
|
|
|
494
494
|
if (isNvidiaPreferred || uniqueNvidiaModels.length > 0) {
|
|
495
495
|
for (const model of uniqueNvidiaModels) {
|
|
496
496
|
try {
|
|
497
|
-
const
|
|
497
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
498
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
499
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
498
500
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
499
501
|
method: "POST",
|
|
500
502
|
headers: {
|
|
@@ -691,7 +693,9 @@ Guidelines:
|
|
|
691
693
|
const { provider, model } = target;
|
|
692
694
|
if (provider === "nvidia" && nvidiaKey && isProviderEnabled("nvidia")) {
|
|
693
695
|
try {
|
|
694
|
-
const
|
|
696
|
+
const nvdIdle = options.idleTimeoutMs ?? 18e4;
|
|
697
|
+
const nvdTotal = options.timeoutMs ?? 6e5;
|
|
698
|
+
const idle = createStreamAbortController({ idleMs: nvdIdle, totalMs: nvdTotal });
|
|
695
699
|
const res = await fetch("https://integrate.api.nvidia.com/v1/chat/completions", {
|
|
696
700
|
method: "POST",
|
|
697
701
|
headers: {
|
|
@@ -842,8 +846,8 @@ var DEFAULT_ARTIFACT_STREAM_IDLE_MS, DEFAULT_ARTIFACT_STREAM_TOTAL_MS;
|
|
|
842
846
|
var init_streamRunner = __esm({
|
|
843
847
|
"src/ai/streamRunner.ts"() {
|
|
844
848
|
init_errors();
|
|
845
|
-
DEFAULT_ARTIFACT_STREAM_IDLE_MS =
|
|
846
|
-
DEFAULT_ARTIFACT_STREAM_TOTAL_MS =
|
|
849
|
+
DEFAULT_ARTIFACT_STREAM_IDLE_MS = 9e4;
|
|
850
|
+
DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 48e4;
|
|
847
851
|
}
|
|
848
852
|
});
|
|
849
853
|
|