pi-ptc-meter 1.0.4 → 1.0.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.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -339,7 +339,7 @@ export default function ptcMeter(pi: ExtensionAPI) {
|
|
|
339
339
|
});
|
|
340
340
|
|
|
341
341
|
// 回路:结算上一轮 → **静态骨架**写 system section、**动态数字**投对话尾部消息。
|
|
342
|
-
//
|
|
342
|
+
// 为什么这么拆(实测):system 在对话之前,system 里任一个字节变化都会让其后整段
|
|
343
343
|
// 前缀缓存失效 —— 数字留在 system 时每轮首请求只命中 ~1.3 万 token、丢 12 万,
|
|
344
344
|
// 87 次低命中吃掉 47% 会话成本($3.48/$7.38;低命中请求总价约为命中态的 12 倍,miss 单价 = 命中 ×50);
|
|
345
345
|
// 数字移到对话尾部后 system 永久字节稳定,前缀命中恢复。
|