@thanh01.pmt/curriculum-kit 1.4.29 → 1.4.30

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.
@@ -477,6 +477,13 @@ Guidelines:
477
477
  });
478
478
  }
479
479
  }
480
+ if (!options.customInference && resolveApiKey("CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE") === "1") {
481
+ throw createAiInferenceError({
482
+ errorCode: "ERR_CUSTOM_INFERENCE_REQUIRED",
483
+ message: "customInference is REQUIRED (CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE=1): pass buildKitCustomInference(...) so every LLM call flows through the host AI SDK gateway and its unified Langfuse tracing. Raw-fetch provider routes are disabled by mandate.",
484
+ rawError: { mandate: "CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE", hasCustomInference: false }
485
+ });
486
+ }
480
487
  const formattedMessages = [
481
488
  { role: "system", content: systemInstruction },
482
489
  ...messages.map((m) => ({