fix:播放音乐不会停

This commit is contained in:
lizhongxiang
2025-04-02 11:07:04 +08:00
parent 347fc4ca44
commit cd3e9ed494
3 changed files with 17 additions and 8 deletions
+3 -3
View File
@@ -199,9 +199,9 @@ class ConnectionHandler:
if self.private_config:
self.prompt = self.private_config.private_config.get("prompt", self.prompt)
# self.client_ip_info = get_ip_info(self.client_ip)
# 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.client_ip_info = get_ip_info(self.client_ip)
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.dialogue.put(Message(role="system", content=self.prompt))
self.func_handler = FunctionHandler(self.config)