update:添加数据库表,添加数据上下文填充功能后端部分,全模块实现数据上下文填充功能

This commit is contained in:
3030332422
2025-12-05 10:50:44 +08:00
parent 6f7e8978ca
commit db8d100edb
14 changed files with 198 additions and 2 deletions
@@ -191,7 +191,10 @@ class PromptManager:
# 获取配置的上下文数据
if hasattr(conn, "device_id") and conn.device_id:
self.context_data = self.context_provider.fetch_all(conn.device_id)
if self.base_prompt_template and "dynamic_context" in self.base_prompt_template:
self.context_data = self.context_provider.fetch_all(conn.device_id)
else:
self.context_data = ""
self.logger.bind(tag=TAG).debug(f"上下文信息更新完成")