@digipair/skill-dsp 0.110.2 → 0.110.5
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/index.cjs.js +2 -1
- package/index.esm.js +959 -18747
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -22920,7 +22920,8 @@ let DspService = class DspService {
|
|
|
22920
22920
|
var _modelInstance_ai;
|
|
22921
22921
|
// add comsumption
|
|
22922
22922
|
const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
|
|
22923
|
-
|
|
22923
|
+
var _ai_tokensUsed;
|
|
22924
|
+
const consumption = (_ai_tokensUsed = ai.tokensUsed) != null ? _ai_tokensUsed : ai.modelUsage;
|
|
22924
22925
|
const skillLogger = require('@digipair/skill-logger');
|
|
22925
22926
|
await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
|
|
22926
22927
|
return result;
|