update:开启唤醒词加速 (#486)

This commit is contained in:
hrz
2025-03-23 22:02:13 +08:00
committed by GitHub
parent 19455f89d3
commit 004ee6f143
8 changed files with 72 additions and 5 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ class ConnectionHandler:
self.client_ip_info = get_ip_info(self.client_ip)
if self.client_ip_info is not None and "city" in self.client_ip_info:
self.logger.bind(tag=TAG).info(f"Client ip info: {self.client_ip_info}")
self.prompt = self.prompt + f"\n我在:{self.client_ip_info}"
self.prompt = self.prompt + f"\nuser location:{self.client_ip_info}"
self.dialogue.update_system_message(self.prompt)
def change_system_prompt(self, prompt):