@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.
- package/dist/ai/index.cjs +7 -0
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.mjs +7 -0
- package/dist/ai/index.mjs.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/dist/media/index.cjs +7 -0
- package/dist/media/index.cjs.map +1 -1
- package/dist/media/index.mjs +7 -0
- package/dist/media/index.mjs.map +1 -1
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.mjs.map +1 -1
- package/dist/workflow/index.cjs +7 -0
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +7 -0
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ai/index.cjs
CHANGED
|
@@ -464,6 +464,13 @@ Guidelines:
|
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
+
if (!options.customInference && resolveApiKey("CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE") === "1") {
|
|
468
|
+
throw createAiInferenceError({
|
|
469
|
+
errorCode: "ERR_CUSTOM_INFERENCE_REQUIRED",
|
|
470
|
+
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.",
|
|
471
|
+
rawError: { mandate: "CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE", hasCustomInference: false }
|
|
472
|
+
});
|
|
473
|
+
}
|
|
467
474
|
const formattedMessages = [
|
|
468
475
|
{ role: "system", content: systemInstruction },
|
|
469
476
|
...messages.map((m) => ({
|