Skip to content

Commit 481d613

Browse files
committed
Estimate the number of tokens in the last message for sliding window math
1 parent b3c1a9f commit 481d613

File tree

5 files changed

+276
-30
lines changed

5 files changed

+276
-30
lines changed

e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"useUnknownInCatchVariables": false,
1212
"outDir": "out"
1313
},
14-
"include": ["src", "../src/exports"],
14+
"include": ["src", "../src/exports/cline.d.ts"],
1515
"exclude": [".vscode-test", "**/node_modules/**", "out"]
1616
}

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
"sound-play": "^1.1.0",
349349
"string-similarity": "^4.0.4",
350350
"strip-ansi": "^7.1.0",
351+
"js-tiktoken": "^1.0.19",
351352
"tmp": "^0.2.3",
352353
"tree-sitter-wasms": "^0.1.11",
353354
"turndown": "^7.2.0",

0 commit comments

Comments
 (0)