wormclaude 1.0.80 → 1.0.81
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/dist/compact.js +5 -2
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/compact.js
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
// Manuel /compact ve otomatik (eşik aşılınca) tetikleme aynı çekirdeği kullanır.
|
|
3
3
|
import { completeText } from './agent.js';
|
|
4
4
|
import { approxTokens } from './usage.js';
|
|
5
|
-
// Bağlam penceresi
|
|
6
|
-
|
|
5
|
+
// Bağlam penceresi — vLLM'de servis edilen modelin GERÇEK tavanıyla hizalı olmalı.
|
|
6
|
+
// Sunucu (Qwen2.5-32B-AWQ) max-model-len = 16384. 32768 verilirse özetleme geç
|
|
7
|
+
// tetiklenir, model 16K'da "bağlam taştı" hatası döndürür → tepkisel/geç toparlama.
|
|
8
|
+
// Daha büyük bağlam istenirse: önce vLLM max-model-len artırılmalı (KV-cache VRAM gerektirir).
|
|
9
|
+
const CONTEXT_WINDOW = Number(process.env.WORMCLAUDE_CONTEXT_WINDOW) || 16384;
|
|
7
10
|
const SUMMARY_RESERVE = 4000; // özet çıktısı için rezerv (CC: ~20K büyük modellerde)
|
|
8
11
|
const AUTOCOMPACT_BUFFER = 2000;
|
|
9
12
|
export function autoCompactThreshold() {
|
package/dist/theme.js
CHANGED