@goliapkg/tiktoken-wasm 3.3.0 → 3.4.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 CHANGED
@@ -122,7 +122,7 @@ module.exports = {
122
122
 
123
123
  ### `listEncodings(): string[]`
124
124
 
125
- List all available encoding names (9 encodings).
125
+ List all available encoding names (11 encodings).
126
126
 
127
127
  ### `getEncoding(name: string): Encoding`
128
128
 
@@ -161,7 +161,7 @@ Map a model name to its encoding name without loading the encoding.
161
161
 
162
162
  ### `estimateCost(modelId, inputTokens, outputTokens): number`
163
163
 
164
- Estimate API cost in USD. Supports 57 models across 7 providers.
164
+ Estimate API cost in USD. Supports 63 models across 7 providers.
165
165
 
166
166
  ### `getModelInfo(modelId): ModelInfo`
167
167
 
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.3.0",
5
+ "version": "3.4.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -108,6 +108,7 @@ export function estimateCost(model_id: string, input_tokens: number, output_toke
108
108
  * - `"p50k_base"` — text-davinci-002/003
109
109
  * - `"p50k_edit"` — text-davinci-edit
110
110
  * - `"r50k_base"` — GPT-3 (davinci, curie, etc.)
111
+ * - `"gpt2"` — GPT-2 (alias for r50k_base)
111
112
  * - `"llama3"` — Meta Llama 3/4
112
113
  * - `"deepseek_v3"` — DeepSeek V3/R1
113
114
  * - `"qwen2"` — Qwen 2/2.5/3
package/tiktoken_wasm.js CHANGED
@@ -348,6 +348,7 @@ export function estimateCost(model_id, input_tokens, output_tokens) {
348
348
  * - `"p50k_base"` — text-davinci-002/003
349
349
  * - `"p50k_edit"` — text-davinci-edit
350
350
  * - `"r50k_base"` — GPT-3 (davinci, curie, etc.)
351
+ * - `"gpt2"` — GPT-2 (alias for r50k_base)
351
352
  * - `"llama3"` — Meta Llama 3/4
352
353
  * - `"deepseek_v3"` — DeepSeek V3/R1
353
354
  * - `"qwen2"` — Qwen 2/2.5/3
Binary file