mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
add
This commit is contained in:
parent
ef8b05f8e9
commit
8b1bc7da16
1 changed files with 2 additions and 0 deletions
|
|
@ -610,8 +610,10 @@ class ConnectionHandler:
|
|||
# Use the existing chat method
|
||||
|
||||
if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and 'double_stream' in self.tts.stream_mode:
|
||||
self.logger.bind(tag=TAG).info(f"self.tts.provider_name: { self.tts.provider_name} {self.tts.stream_mode}")
|
||||
self.chat_double_stream(text)
|
||||
else:
|
||||
self.logger.bind(tag=TAG).info(f"self.tts.provider_name: single_stream")
|
||||
self.chat(text)
|
||||
|
||||
# After chat is complete, close the connection
|
||||
|
|
|
|||
Loading…
Reference in a new issue