Tree: Format
Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
parent
3b482d80e4
commit
7f6294a96d
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class PromptTemplate:
|
|||
def compile(self, template_str: str):
|
||||
"""Compiles and stores a jinja2 template"""
|
||||
|
||||
# Some models require strftime_now, e.g. Granite3
|
||||
# Some models require strftime_now, e.g. Granite3
|
||||
def strftime_now(format):
|
||||
current_time = datetime.now()
|
||||
return current_time.strftime(format)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue