update:优化

This commit is contained in:
hrz
2025-05-25 08:56:58 +08:00
parent 7a598d5839
commit 40632019ac
4 changed files with 28 additions and 18 deletions
+4
View File
@@ -123,6 +123,7 @@ class ConnectionHandler:
# tts相关变量
self.tts_first_text_index = -1
self.tts_last_text_index = -1
self.tts_session_id = None
# iot相关变量
self.iot_descriptors = {}
@@ -521,6 +522,9 @@ class ConnectionHandler:
)
memory_str = future.result()
uuid_str = str(uuid.uuid4()).replace("-", "")
self.tts_session_id = uuid_str
if functions is not None:
# 使用支持functions的streaming接口
llm_responses = self.llm.response_with_functions(