@wrongstack/webui 0.24.0 → 0.31.1

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.
@@ -18,7 +18,7 @@ import {
18
18
  CollaborationBus,
19
19
  collabPauseMiddleware,
20
20
  collabInjectMiddleware,
21
- estimateRequestTokens,
21
+ estimateRequestTokensCalibrated,
22
22
  EventBus,
23
23
  HybridCompactor as HybridCompactor2,
24
24
  ProviderRegistry,
@@ -1435,7 +1435,7 @@ async function startWebUI(opts = {}) {
1435
1435
  autoCompactor = new AutoCompactionMiddleware(
1436
1436
  compactor,
1437
1437
  effectiveMaxContext,
1438
- (ctx) => estimateRequestTokens(ctx.messages, ctx.systemPrompt, ctx.tools ?? []).total,
1438
+ (ctx) => estimateRequestTokensCalibrated(ctx.messages, ctx.systemPrompt, ctx.tools ?? []).total,
1439
1439
  {
1440
1440
  warn: initialContextPolicy.thresholds.warn,
1441
1441
  soft: initialContextPolicy.thresholds.soft,