OpenAI's tokenizer is available (as the tiktoken Python library) but you're on your own when it comes to guessing how many tokens will be used by the additional JSON syntax used for previous messages and tool definitions Mixtral's tokenizer here solves that problem
Mixtral Tokenizer Solves OpenAI’s JSON Token Counting Problem
By
–
Leave a Reply