Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/provider / / JsTiktokenCounterOptions
Interface: JsTiktokenCounterOptions
Defined in: packages/provider/src/counters/js-tiktoken.ts:36
Options for JsTiktokenCounter.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
encoding? | readonly | string | Encoding name ('cl100k_base', 'o200k_base', …). Default 'cl100k_base'. | packages/provider/src/counters/js-tiktoken.ts:38 |
id? | readonly | string | Identifier carried on the produced counter. | packages/provider/src/counters/js-tiktoken.ts:47 |
modelId? | readonly | string | Optional model id used by encodingForModel. Falls back to the explicit encoding. | packages/provider/src/counters/js-tiktoken.ts:40 |
moduleOverride? | readonly | TiktokenModule | Override the dynamically-loaded module. Used by tests to inject a stub without taking the real js-tiktoken peer dependency. | packages/provider/src/counters/js-tiktoken.ts:45 |