Skip to main content

Function: truncateMaxTokens()

truncateMaxTokens(tokenizer, value, maxTokens): string

Parameters

tokenizer: Tokenizers

value: string

maxTokens: number

Returns

string

Defined in

packages/core/embeddings/dist/index.d.ts:77