gpt-token-utils
Version:
Isomorphic utilities for GPT-3 tokenization and prompt building.
25 lines (24 loc) • 600 B
text/typescript
/**
* @copyright Sister Software. All rights reserved.
* @author Teffen Ellis, et al.
* @license
* See LICENSE file in the project root for full license information.
*/
/**
* Serialized vocabulary. Used with the bundled vocabulary.
* @internal
* @ignore
*/
export type BundledVocab = readonly string[];
/**
* Serialized encoder keys. Used with the bundled encoder.
* @internal
* @ignore
*/
export type BundledEncoderKeys = readonly string[];
/**
* Serialized encoder keys. Used with the bundled encoder.
* @internal
* @ignore
*/
export type BundledEncoderValues = readonly number[];