@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.
@@ -494,7 +494,9 @@ Guidelines:
494
494
  if (isNvidiaPreferred || uniqueNvidiaModels.length > 0) {
495
495
  for (const model of uniqueNvidiaModels) {
496
496
  try {
497
- const idle = createStreamAbortController({ idleMs: options.idleTimeoutMs, totalMs: options.timeoutMs });
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 idle = createStreamAbortController({ idleMs: options.idleTimeoutMs, totalMs: options.timeoutMs });
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 = 45e3;
846
- DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 42e4;
849
+ DEFAULT_ARTIFACT_STREAM_IDLE_MS = 9e4;
850
+ DEFAULT_ARTIFACT_STREAM_TOTAL_MS = 48e4;
847
851
  }
848
852
  });
849
853