@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.
@@ -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 = 45000;
75
- declare const DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 420000;
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 = 45000;
75
- declare const DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 420000;
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). */
@@ -503,7 +503,9 @@ Guidelines:
503
503
  if (isNvidiaPreferred || uniqueNvidiaModels.length > 0) {
504
504
  for (const model of uniqueNvidiaModels) {
505
505
  try {
506
- const idle = createStreamAbortController({ idleMs: options.idleTimeoutMs, totalMs: options.timeoutMs });
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 idle = createStreamAbortController({ idleMs: options.idleTimeoutMs, totalMs: options.timeoutMs });
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 = 45e3;
855
- DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 42e4;
858
+ DEFAULT_ARTIFACT_STREAM_IDLE_MS = 9e4;
859
+ DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 48e4;
856
860
  }
857
861
  });
858
862