Method CountTokens
CountTokens(string)
Counts tokens with the model's own tokenizer, never an estimate.
int CountTokens(string text)
Parameters
textstringThe text to count.
Returns
- int
The token count.
Counts tokens with the model's own tokenizer, never an estimate.
int CountTokens(string text)
text stringThe text to count.
The token count.