mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-30 11:11:35 +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):
|
def compile(self, template_str: str):
|
||||||
"""Compiles and stores a jinja2 template"""
|
"""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):
|
def strftime_now(format):
|
||||||
current_time = datetime.now()
|
current_time = datetime.now()
|
||||||
return current_time.strftime(format)
|
return current_time.strftime(format)
|
||||||
|
|||||||
Reference in New Issue
Block a user