Package version:

Interface AzureOpenAITokenizerParameters

interface AzureOpenAITokenizerParameters {
    allowedSpecialTokens?: string[];
    encoderModelName?: string;
}

Properties

allowedSpecialTokens?: string[]

(Optional) Only applies if the unit is set to azureOpenAITokens. This parameter defines a collection of special tokens that are permitted within the tokenization process.

encoderModelName?: string

Only applies if the unit is set to azureOpenAITokens. Options include 'R50k_base', 'P50k_base', 'P50k_edit' and 'CL100k_base'. The default value is 'CL100k_base'.