修复 1. AGS10的TVOC 数据为准备就绪问题

2. ntp支持多次获取时间
     3. mini的同步讯飞function
This commit is contained in:
dahanzimin
2025-11-05 13:23:50 +08:00
parent af948886e3
commit 00969c770c
3 changed files with 29 additions and 18 deletions

View File

@@ -244,6 +244,10 @@ class LLM_WebSocket(Ws_Param):
if "reasoning_content" in text and reas:
print("reasoning: ", text["reasoning_content"])
#回调
if "tool_calls" in text:
function = text['tool_calls'][0]['function']
if str(function['name']) in self._function[0] and function['arguments']:
self._function[0][function['name']](json.loads(function['arguments']))
if "function_call" in text:
if str(text['function_call']['name']) in self._function[0] and text['function_call']['arguments']:
self._function[0][text['function_call']['name']](json.loads(text['function_call']['arguments']))