blun-king-cli 9.1.13 → 9.1.14
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/blun.mjs +2 -4
- package/package.json +1 -1
package/blun.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// BLUN_BUILD_INPUT_SHA256:
|
|
2
|
+
// BLUN_BUILD_INPUT_SHA256:8f93034aa92ac7b99ba8e0031ea4a42ec693cfb699ca6223c4a889ff94f85670
|
|
3
3
|
import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
4
4
|
import { dirname as __cjsShimDirname } from 'node:path';
|
|
5
5
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
@@ -501689,9 +501689,7 @@ function contextMetrics(state) {
|
|
|
501689
501689
|
const responder = state.availableModels[responderAlias];
|
|
501690
501690
|
const responderMax = responder === void 0 ? void 0 : effectiveModelAlias(responder).maxContextSize;
|
|
501691
501691
|
const runtimeMax = Number.isFinite(state.maxContextTokens) ? Math.max(0, state.maxContextTokens) : 0;
|
|
501692
|
-
const
|
|
501693
|
-
const compactionBudget = Number.isFinite(state.compactionBudgetTokens) ? Math.max(0, state.compactionBudgetTokens ?? 0) : 0;
|
|
501694
|
-
const maxTokens = compactionBudget > 0 ? compactionBudget : hardMaxTokens;
|
|
501692
|
+
const maxTokens = runtimeMax > 0 ? runtimeMax : responderMax ?? 0;
|
|
501695
501693
|
return {
|
|
501696
501694
|
tokens,
|
|
501697
501695
|
maxTokens,
|