@thanh01.pmt/curriculum-kit 1.4.29 → 1.4.31

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.
@@ -701,6 +701,13 @@ Guidelines:
701
701
  });
702
702
  }
703
703
  }
704
+ if (!options.customInference && resolveApiKey2("CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE") === "1") {
705
+ throw createAiInferenceError({
706
+ errorCode: "ERR_CUSTOM_INFERENCE_REQUIRED",
707
+ 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.",
708
+ rawError: { mandate: "CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE", hasCustomInference: false }
709
+ });
710
+ }
704
711
  const formattedMessages = [
705
712
  { role: "system", content: systemInstruction },
706
713
  ...messages.map((m) => ({