mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
fix:修复“设备使用iot协议,意图识别无法正确调用”的问题
This commit is contained in:
@@ -338,6 +338,9 @@ async def handleIotDescriptors(conn, descriptors):
|
||||
|
||||
# 如果注册了新函数,更新function描述列表
|
||||
if functions_changed and hasattr(conn, "func_handler"):
|
||||
|
||||
conn.func_handler.functions_desc = conn.func_handler.function_registry.get_all_function_desc()
|
||||
|
||||
func_names = conn.func_handler.current_support_functions()
|
||||
conn.logger.bind(tag=TAG).info(f"设备类型: {type_id}")
|
||||
conn.logger.bind(tag=TAG).info(
|
||||
|
||||
Reference in New Issue
Block a user