@digipair/skill-dsp 0.82.5 → 0.82.7

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 CHANGED
@@ -124530,9 +124530,9 @@ let DspService = class DspService {
124530
124530
  buffer = this.mergeDeltas(buffer, item.delta);
124531
124531
  }
124532
124532
  const result = buffer;
124533
- var _modelInstance_ia;
124533
+ var _modelInstance_ai;
124534
124534
  // add comsumption
124535
- const ai = (_modelInstance_ia = modelInstance.ia) != null ? _modelInstance_ia : modelInstance;
124535
+ const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
124536
124536
  const consumption = ai.modelUsage;
124537
124537
  const skillLogger = require('@digipair/skill-logger');
124538
124538
  await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
@@ -124560,9 +124560,9 @@ let DspService = class DspService {
124560
124560
  buffer = this.mergeDeltas(buffer, item.delta);
124561
124561
  }
124562
124562
  const result = buffer;
124563
- var _modelInstance_ia;
124563
+ var _modelInstance_ai;
124564
124564
  // add comsumption
124565
- const ai = (_modelInstance_ia = modelInstance.ia) != null ? _modelInstance_ia : modelInstance;
124565
+ const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
124566
124566
  const consumption = ai.modelUsage;
124567
124567
  const skillLogger = require('@digipair/skill-logger');
124568
124568
  await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
@@ -124603,9 +124603,9 @@ let DspService = class DspService {
124603
124603
  buffer = this.mergeDeltas(buffer, item.delta);
124604
124604
  }
124605
124605
  const result = buffer;
124606
- var _modelInstance_ia;
124606
+ var _modelInstance_ai;
124607
124607
  // add comsumption
124608
- const ai = (_modelInstance_ia = modelInstance.ia) != null ? _modelInstance_ia : modelInstance;
124608
+ const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
124609
124609
  const consumption = ai.modelUsage;
124610
124610
  const skillLogger = require('@digipair/skill-logger');
124611
124611
  await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
package/index.esm.js CHANGED
@@ -23951,14 +23951,14 @@ function indent(str, spaces) {
23951
23951
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23952
23952
  // match is required
23953
23953
  if (!match) {
23954
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23954
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23955
23955
  v: nextMatch1
23956
23956
  };
23957
23957
  }
23958
23958
  var token = match.token, offset = match.offset;
23959
23959
  i1 += offset;
23960
23960
  if (token === " ") {
23961
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23961
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23962
23962
  }
23963
23963
  tokens1 = _to_consumable_array$5(tokens1).concat([
23964
23964
  token
@@ -23977,7 +23977,7 @@ function indent(str, spaces) {
23977
23977
  if (contextKeys.some(function(el) {
23978
23978
  return el.startsWith(name);
23979
23979
  })) {
23980
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23980
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23981
23981
  }
23982
23982
  if (dateTimeIdentifiers.some(function(el) {
23983
23983
  return el === name;
@@ -23996,9 +23996,9 @@ function indent(str, spaces) {
23996
23996
  if (dateTimeIdentifiers.some(function(el) {
23997
23997
  return el.startsWith(name);
23998
23998
  })) {
23999
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23999
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24000
24000
  }
24001
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
24001
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
24002
24002
  v: nextMatch1
24003
24003
  };
24004
24004
  };
@@ -152469,9 +152469,9 @@ let DspService = class DspService {
152469
152469
  buffer = this.mergeDeltas(buffer, item.delta);
152470
152470
  }
152471
152471
  const result = buffer;
152472
- var _modelInstance_ia;
152472
+ var _modelInstance_ai;
152473
152473
  // add comsumption
152474
- const ai = (_modelInstance_ia = modelInstance.ia) != null ? _modelInstance_ia : modelInstance;
152474
+ const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
152475
152475
  const consumption = ai.modelUsage;
152476
152476
  const skillLogger = require('@digipair/skill-logger');
152477
152477
  await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
@@ -152499,9 +152499,9 @@ let DspService = class DspService {
152499
152499
  buffer = this.mergeDeltas(buffer, item.delta);
152500
152500
  }
152501
152501
  const result = buffer;
152502
- var _modelInstance_ia;
152502
+ var _modelInstance_ai;
152503
152503
  // add comsumption
152504
- const ai = (_modelInstance_ia = modelInstance.ia) != null ? _modelInstance_ia : modelInstance;
152504
+ const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
152505
152505
  const consumption = ai.modelUsage;
152506
152506
  const skillLogger = require('@digipair/skill-logger');
152507
152507
  await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
@@ -152542,9 +152542,9 @@ let DspService = class DspService {
152542
152542
  buffer = this.mergeDeltas(buffer, item.delta);
152543
152543
  }
152544
152544
  const result = buffer;
152545
- var _modelInstance_ia;
152545
+ var _modelInstance_ai;
152546
152546
  // add comsumption
152547
- const ai = (_modelInstance_ia = modelInstance.ia) != null ? _modelInstance_ia : modelInstance;
152547
+ const ai = (_modelInstance_ai = modelInstance.ai) != null ? _modelInstance_ai : modelInstance;
152548
152548
  const consumption = ai.modelUsage;
152549
152549
  const skillLogger = require('@digipair/skill-logger');
152550
152550
  await skillLogger.addConsumption(context, ai.name, ai.defaults.model, consumption.promptTokens, consumption.completionTokens);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-dsp",
3
- "version": "0.82.5",
3
+ "version": "0.82.7",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",