修复 1. AGS10的TVOC 数据为准备就绪问题
2. ntp支持多次获取时间
3. mini的同步讯飞function
This commit is contained in:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user