Show debug log, not warning when use default tokenizer for context stuffing

This commit is contained in:
Debanjum Singh Solanky 2024-09-12 20:20:14 -07:00
parent f173188dcf
commit 178b78f87b

View file

@ -238,7 +238,7 @@ def truncate_messages(
else:
encoder = AutoTokenizer.from_pretrained(default_tokenizer)
state.pretrained_tokenizers[default_tokenizer] = encoder
logger.warning(
logger.debug(
f"Fallback to default chat model tokenizer: {tokenizer_name}.\nConfigure tokenizer for unsupported model: {model_name} in Khoj settings to improve context stuffing."
)