count_tokens
Count tokens in any text using the GPT-3.5/4 tokenizer to check context budget before sending large prompts.
Instructions
Count tokens in text using the GPT-3.5/4 (cl100k_base) tokenizer. Useful for managing context budget before sending a large prompt
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |