From d8bf5cdedf9f8f5389c059de451bf1cb4a2d8e13 Mon Sep 17 00:00:00 2001 From: Sakura-RanChen <1908198662@qq.com> Date: Mon, 16 Jun 2025 16:26:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20openAi=20schema=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/plugins_func/functions/hass_set_state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/xiaozhi-server/plugins_func/functions/hass_set_state.py b/main/xiaozhi-server/plugins_func/functions/hass_set_state.py index 30b2ac45..704148ee 100644 --- a/main/xiaozhi-server/plugins_func/functions/hass_set_state.py +++ b/main/xiaozhi-server/plugins_func/functions/hass_set_state.py @@ -31,7 +31,8 @@ hass_set_state_function_desc = { "description": "只有在设置静音操作时才需要,设置静音的时候该值为true,取消静音时该值为false", }, "rgb_color": { - "type": "list", + "type": "array", + "items": {"type": "integer"}, "description": "只有在设置颜色时需要,这里填目标颜色的rgb值", }, },