Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/provider / / JsTiktokenCounterOptions
Interface: JsTiktokenCounterOptions
Defined in: packages/provider/src/counters/js-tiktoken.ts:63
Stable
Options for JsTiktokenCounter.
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:65 |
id? | readonly | string | Identifier carried on the produced counter. | packages/provider/src/counters/js-tiktoken.ts:74 |
modelId? | readonly | string | Optional model id used by encodingForModel. Falls back to the explicit encoding. | packages/provider/src/counters/js-tiktoken.ts:67 |
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:72 |