mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Tree: Format
Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user