@goliapkg/tiktoken-wasm 3.8.2 → 4.0.0
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 +5 -1
- package/package.json +1 -1
- package/tiktoken_wasm_bg.wasm +0 -0
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 (
|
|
26
|
+
- `tiktoken_wasm_bg.wasm` — compiled WASM binary (6.27 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
package/tiktoken_wasm_bg.wasm
CHANGED
|
Binary file
|