update:优化提示词

This commit is contained in:
hrz
2025-07-11 10:15:14 +08:00
parent cd58b3a39a
commit 108c87f395
5 changed files with 39 additions and 64 deletions
@@ -7,6 +7,7 @@ import os
import cnlunar
from typing import Dict, Any
from config.logger import setup_logging
from jinja2 import Template
TAG = __name__
@@ -196,7 +197,8 @@ class PromptManager:
)
# 替换模板变量
enhanced_prompt = self.base_prompt_template.format(
template = Template(self.base_prompt_template)
enhanced_prompt = template.render(
base_prompt=user_prompt,
current_time=current_time,
today_date=today_date,