🎈 auto fixes by pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2025-03-09 13:23:51 +00:00
parent 27978b216d
commit 194409a117
+3 -1
View File
@@ -1089,7 +1089,9 @@ UID: {user_id} 此 ID 可用于设置管理员。/op <UID> 授权管理员, /deo
req.prompt = user_info + req.prompt
if self.enable_datetime:
current_time = datetime.datetime.now().astimezone().strftime("%Y-%m-%d %H:%M")
current_time = (
datetime.datetime.now().astimezone().strftime("%Y-%m-%d %H:%M")
)
req.system_prompt += f"\nCurrent datetime: {current_time}\n"
if req.conversation: