@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.
@@ -509,8 +509,8 @@ function extractThoughtAndContent(rawText) {
509
509
  content: content.trim()
510
510
  };
511
511
  }
512
- var DEFAULT_ARTIFACT_STREAM_IDLE_MS = 45e3;
513
- var DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 42e4;
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 idle = createStreamAbortController({ idleMs: options.idleTimeoutMs, totalMs: options.timeoutMs });
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 idle = createStreamAbortController({ idleMs: options.idleTimeoutMs, totalMs: options.timeoutMs });
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: {