@noobdemon/noob-cli 1.10.10 → 1.10.11
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/package.json +1 -1
- package/src/tokens.js +2 -2
package/package.json
CHANGED
package/src/tokens.js
CHANGED
|
@@ -32,8 +32,8 @@ export function countMessages(messages = []) {
|
|
|
32
32
|
// window đủ rộng (256 chars) để qua mọi ranh giới token thực tế của cl100k_base
|
|
33
33
|
// (token dài nhất ~ vài chục byte).
|
|
34
34
|
const TAIL_WINDOW = 256;
|
|
35
|
-
// Context window tối đa của model (
|
|
36
|
-
export const CONTEXT_WINDOW =
|
|
35
|
+
// Context window tối đa của model (300k tokens). Dùng để tính % usage realtime.
|
|
36
|
+
export const CONTEXT_WINDOW = 300000;
|
|
37
37
|
|
|
38
38
|
export class TokenMeter {
|
|
39
39
|
constructor() {
|