mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
update:修改日志
This commit is contained in:
@@ -59,4 +59,6 @@ class ContextDataProvider:
|
|||||||
|
|
||||||
# 将所有格式化后的行拼接成一个字符串
|
# 将所有格式化后的行拼接成一个字符串
|
||||||
self.context_data = "\n".join(formatted_lines)
|
self.context_data = "\n".join(formatted_lines)
|
||||||
|
if self.context_data:
|
||||||
|
self.logger.bind(tag=TAG).debug(f"已注入动态上下文数据:\n{self.context_data}")
|
||||||
return self.context_data
|
return self.context_data
|
||||||
|
|||||||
@@ -253,7 +253,6 @@ class PromptManager:
|
|||||||
self.logger.bind(tag=TAG).info(
|
self.logger.bind(tag=TAG).info(
|
||||||
f"构建增强提示词成功,长度: {len(enhanced_prompt)}"
|
f"构建增强提示词成功,长度: {len(enhanced_prompt)}"
|
||||||
)
|
)
|
||||||
print("enhanced_prompt:", enhanced_prompt)
|
|
||||||
return enhanced_prompt
|
return enhanced_prompt
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user