Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagomoretto committed Aug 5, 2024
1 parent 67e4433 commit f3b3d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crewai/utilities/token_counter_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, model_name, token_cost_process):
self.token_cost_process = token_cost_process
try:
self.encoding = tiktoken.encoding_for_model(self.model_name)
except KeyError as e:
except KeyError:
self.encoding = tiktoken.get_encoding("cl100k_base")

def on_llm_start(
Expand Down

0 comments on commit f3b3d32

Please sign in to comment.