fix:修复全模块时缺少prompt_template配置的问题

This commit is contained in:
3030332422
2025-10-31 20:36:55 +08:00
parent cc9d5306e6
commit 32ecbe55fc
3 changed files with 7 additions and 1 deletions
@@ -68,6 +68,9 @@ def get_config_from_api(config):
"vision_explain": config["server"].get("vision_explain", ""),
"auth_key": config["server"].get("auth_key", ""),
}
# 如果服务器没有prompt_template,则从本地配置读取
if not config_data.get("prompt_template"):
config_data["prompt_template"] = config.get("prompt_template")
return config_data