mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-28 01:28:14 +00:00
Fix lint issue
This commit is contained in:
@@ -17,7 +17,7 @@ class TokenCalcHandler(BaseCallbackHandler):
|
|||||||
self.token_cost_process = token_cost_process
|
self.token_cost_process = token_cost_process
|
||||||
try:
|
try:
|
||||||
self.encoding = tiktoken.encoding_for_model(self.model_name)
|
self.encoding = tiktoken.encoding_for_model(self.model_name)
|
||||||
except KeyError as e:
|
except KeyError:
|
||||||
self.encoding = tiktoken.get_encoding("cl100k_base")
|
self.encoding = tiktoken.get_encoding("cl100k_base")
|
||||||
|
|
||||||
def on_llm_start(
|
def on_llm_start(
|
||||||
|
|||||||
Reference in New Issue
Block a user