Buckets:
Sleepyfx/my-trading-vscode / vscode /code-server /extensions /continue.continue-1.3.38-linux-x64 /out /tiktokenWorkerPool.mjs
| import workerpool from "workerpool"; | |
| import { encodingForModel as _encodingForModel } from "js-tiktoken"; | |
| const tiktokenEncoding = _encodingForModel("gpt-4"); | |
| function encode(text) { | |
| return tiktokenEncoding.encode(text, "all", []); | |
| } | |
| function decode(tokens) { | |
| return tiktokenEncoding.decode(tokens); | |
| } | |
| workerpool.worker({ | |
| decode, | |
| encode, | |
| }); | |
Xet Storage Details
- Size:
- 354 Bytes
- Xet hash:
- 3ad3b2846a53f1bd6942c59713f66506dc00417b8e21b6654225e9a885d7802d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.