@goliapkg/tiktoken-wasm 3.8.3 → 4.0.1

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/README.md CHANGED
@@ -23,7 +23,11 @@ wasm-pack build --target web --release
23
23
 
24
24
  Output is in `pkg/` — a complete npm-ready package containing:
25
25
  - `tiktoken_wasm.js` — ES module with WASM loader
26
- - `tiktoken_wasm_bg.wasm` — compiled WASM binary (~7 MB, ~3 MB gzipped)
26
+ - `tiktoken_wasm_bg.wasm` — compiled WASM binary (6.28 MB, 5.55 MB gzipped, all 17 vocabularies)
27
+
28
+ Building it yourself, `--no-default-features --features vocab-o200k_base` (or
29
+ any other `vocab-*` / vendor group forwarded from `tiktoken`) drops that to
30
+ 1.92 MB / 1.20 MB gzipped.
27
31
  - `tiktoken_wasm.d.ts` — TypeScript type definitions
28
32
 
29
33
  ## Usage
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@goliapkg/tiktoken-wasm",
3
3
  "type": "module",
4
4
  "description": "WASM bindings for the tiktoken BPE tokenizer",
5
- "version": "3.8.3",
5
+ "version": "4.0.1",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
Binary file