diff --git a/litellm/tests/test_token_counter.py b/litellm/tests/test_token_counter.py index 50734f7cc22..4d851573cc5 100644 --- a/litellm/tests/test_token_counter.py +++ b/litellm/tests/test_token_counter.py @@ -86,7 +86,7 @@ def test_tokenizers(): # assert that all token values are different assert ( - openai_tokens != cohere_tokens != llama2_tokens != llama3_tokens_1 + openai_tokens != llama2_tokens != llama3_tokens_1 ), "Token values are not different." assert ( @@ -118,7 +118,7 @@ def test_encoding_and_decoding(): # cohere encoding + decoding cohere_tokens = encode(model="command-nightly", text=sample_text) - cohere_text = decode(model="command-nightly", tokens=cohere_tokens.ids) + cohere_text = decode(model="command-nightly", tokens=cohere_tokens) assert cohere_text == sample_text @@ -186,4 +186,4 @@ def test_load_test_token_counter(model): total_time = end_time - start_time print("model={}, total test time={}".format(model, total_time)) - assert total_time < 1.5, f"Total encoding time > 1.5s, {total_time}" + assert total_time < 2, f"Total encoding time > 1.5s, {total_time}"