If I modify the chat_template.jinja, can the model know the current time?

#228
by architectyou - opened

Hi,
I was wondering that If I modify that part of the chat_template.jinja file like this:

{{- model_identity + "\n" }}
{{- "Knowledge cutoff: 2024-06\n" }}
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}

would the model be able to know the current date and switch its model identity accordingly?
or would I need to make additional changes to achieve that?

Sign up or log in to comment