常量可配置:允许自定义agent-base-prompt.txt文件

This commit is contained in:
Chingfeng Li
2025-10-22 14:53:05 +08:00
parent 4b2d7da4e5
commit 3ba437c937
3 changed files with 6 additions and 3 deletions
@@ -38,7 +38,7 @@ class LLMPerformanceTester:
"""加载系统提示词"""
try:
prompt_file = os.path.join(
os.path.dirname(os.path.dirname(__file__)), "agent-base-prompt.txt"
os.path.dirname(os.path.dirname(__file__)), self.config.get("prompt_template", "agent-base-prompt.txt")
)
with open(prompt_file, "r", encoding="utf-8") as f:
content = f.read()