Skip to content

Commit fc27554

Browse files
authored
fix: demote tokenizer log from warning to debug (#1845)
This is warning against functionality that will be removed in the future. Could remove the log, but will keep around as debug just in-case
1 parent 6e06214 commit fc27554

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

griptape/tokenizers/base_tokenizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __attrs_post_init__(self) -> None:
3535
self.max_input_tokens = self._default_max_input_tokens()
3636

3737
if self.max_output_tokens is None:
38+
# TODO(collin): https://github.com/griptape-ai/griptape/issues/1844
3839
self.max_output_tokens = self._default_max_output_tokens()
3940

4041
def count_input_tokens_left(self, text: str) -> int:
@@ -87,7 +88,7 @@ def _default_max_output_tokens(self) -> int:
8788
)
8889

8990
if tokens is None:
90-
logging.warning(
91+
logging.debug(
9192
"Model %s not found in MODEL_PREFIXES_TO_MAX_OUTPUT_TOKENS, using default value of %s.",
9293
self.model,
9394
self.DEFAULT_MAX_OUTPUT_TOKENS,

0 commit comments

Comments
 (0)