• Preparing search index...
  • The search index is not available
Tidyscripts Docs
  • Tidyscripts Docs
  • node
  • apis
  • openai
  • directory_analyzer
  • count_tokens

Function count_tokens

  • count_tokens(text): number
  • Count the number of tokens in a given text.

    Parameters

    • text: string

      The text to be tokenized.

    Returns number

    The number of tokens in the text.

    • Defined in packages/ts_node/src/apis/openai/directory_analyzer.ts:42

Settings

Member Visibility
Tidyscripts Docs
  • Loading...

Generated using TypeDoc