Skip to content

Commit

Permalink
refresh_interval_min typo (caught by Parag)
Browse files Browse the repository at this point in the history
  • Loading branch information
parkervg committed Feb 21, 2024
1 parent 6ecb93f commit ede92de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blendsql/llms/_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def __attrs_post_init__(self):
f"{self.__class__} requires a .env file to be present at '{env_filepath}' with necessary environment variables\nPut it somewhere else? Use the `env` argument to point me to the right directory."
)
if self.refresh_interval_min:
timer = TokenTimer(init_fn=self._setup)
timer = TokenTimer(
init_fn=self._setup, refresh_interval_min=self.refresh_interval_min
)
timer.start()
if self.tokenizer is not None:
assert hasattr(self.tokenizer, "encode") and callable(
Expand Down

0 comments on commit ede92de

Please sign in to comment.