(fix) test_tokenizers

This commit is contained in:
ishaan-jaff 2024-02-23 10:08:07 -08:00
parent 44b8270bf6
commit ff815e93a8

View file

@ -53,7 +53,7 @@ def test_tokenizers():
try: try:
### test the openai, claude, cohere and llama2 tokenizers. ### test the openai, claude, cohere and llama2 tokenizers.
### The tokenizer value should be different for all ### The tokenizer value should be different for all
sample_text = "Hellö World, this is my input string!" sample_text = "Hellö World, this is my input string! My name is ishaan CTO"
# openai tokenizer # openai tokenizer
openai_tokens = token_counter(model="gpt-3.5-turbo", text=sample_text) openai_tokens = token_counter(model="gpt-3.5-turbo", text=sample_text)