anthropics / anthropic-tokenizer-typescript

MIT License
47 stars 1 forks source link

Feature request: Support Claude 3 #8

Open kevinhu opened 4 months ago

kevinhu commented 4 months ago

We're working with a couple of long context window prompts where knowing the token counts of prompt components is useful before we make the requests.

However, testing our workflows with Claude 3 has been tricky because we have no way to get these estimates until after we've made the request, which costs us a few API credits. It would be extremely useful if the tokenizer could add support for the new series of models.