Skip to content

Commit

Permalink
Update test_openai_token_counter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aflament committed Jun 7, 2024
1 parent 65ce415 commit a1d3854
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/llm/test_openai_token_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ def test_token_counter_gpt_4_turbo(self):
counter = OpenAITokenCounter.from_model(model)
self.assertEqual(counter.token_limit, 128000)

def test_token_counter_gpt_4o(self):
model = "gpt-4o"
counter = OpenAITokenCounter.from_model(model)
self.assertEqual(counter.token_limit, 128000)

def test_token_counter_exception(self):
model = "gpt-4"
counter = OpenAITokenCounter.from_model(model)
Expand Down

0 comments on commit a1d3854

Please sign in to comment.