Counting is exact for OpenAI encodings via tiktoken. Adding an encoder and price entries for Anthropic and other providers (with a clearly approximate fallback where no official tokenizer exists) would make the budget gate useful beyond OpenAI. The encoder interface already isolates this.
Counting is exact for OpenAI encodings via tiktoken. Adding an encoder and price entries for Anthropic and other providers (with a clearly approximate fallback where no official tokenizer exists) would make the budget gate useful beyond OpenAI. The encoder interface already isolates this.