@thanh01.pmt/domain-kit 0.6.3 → 0.6.4

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.
@@ -1107,7 +1107,10 @@ function excerpt(text, max) {
1107
1107
  async function chatJson(client, system, user, onTransport) {
1108
1108
  const r = await client.chat(
1109
1109
  [{ role: "system", content: system }, { role: "user", content: user }],
1110
- { temperature: 0.1, maxTokens: parseInt(process.env.KG_MAX_TOKENS || "65536", 10) }
1110
+ {
1111
+ temperature: 0.1,
1112
+ maxTokens: Math.min(parseInt(process.env.KG_MAX_TOKENS || "16384", 10), 32768)
1113
+ }
1111
1114
  );
1112
1115
  const t = r._transport ?? transportResultFrom("9router", client.model, { framingStripped: true });
1113
1116
  onTransport?.(t);
@@ -2279,5 +2282,5 @@ async function decomposePhases(args) {
2279
2282
  }
2280
2283
 
2281
2284
  export { CIO_CODE_RE, CONCEPT_CODE_RE, LEARNER_CLAUSE, SIO_CODE_RE, ULO_CODE_RE, assignConceptCodes, auditDepthLayers, auditPhasePlan, auditSyllabusCoverage, authorDepthLayersHierarchically, breakPrerequisiteCycles, cioActionSlug, cioCode, conceptCodeFromName, detectPrerequisiteCycles, escalateAndMapConcepts, extractFeatureSteps, extractFeatureStepsBatched, extractProjectOverview, extractScaffold, generateHybridGraph, generateKnowledgeGraph, sioCode, standardStatement, techTagFor, uloCode, verifyKnowledgeGraph, verifyProjectGraph };
2282
- //# sourceMappingURL=chunk-O6Z7F7XI.mjs.map
2283
- //# sourceMappingURL=chunk-O6Z7F7XI.mjs.map
2285
+ //# sourceMappingURL=chunk-6MM3MVQ5.mjs.map
2286
+ //# sourceMappingURL=chunk-6MM3MVQ5.mjs.map