gpt-token-utils
Version:
Isomorphic utilities for GPT-3 tokenization and prompt building.
15 lines (14 loc) • 427 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.
*/
import { IBytePairEncodingOptions } from '../mod.mjs';
export interface TestCase<G, E> {
label: string;
given: G;
expected: E;
options?: Partial<IBytePairEncodingOptions>;
}
export declare function readFixture(fileName: string): string;