update:优化home_assistant提示词加载

This commit is contained in:
hrz
2025-03-22 20:39:52 +08:00
parent d5a5b24223
commit 82413fecab
8 changed files with 129 additions and 250 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ class ConnectionHandler:
self.prompt = self.prompt + f"\n我在:{self.client_ip_info}"
self.dialogue.put(Message(role="system", content=self.prompt))
self.func_handler = FunctionHandler(self.config)
self.func_handler = FunctionHandler(self)
def change_system_prompt(self, prompt):
self.prompt = prompt