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
bbff895fc2
commit
80f24645a9
1 changed files with 3 additions and 1 deletions
|
|
@ -608,9 +608,11 @@ class ConnectionHandler:
|
|||
"""Chat with the user and then close the connection"""
|
||||
try:
|
||||
# Use the existing chat method
|
||||
self.chat(text)
|
||||
|
||||
if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and self.tts.stream_mode == 'double_stream':
|
||||
self.chat_double_stream(text)
|
||||
else:
|
||||
self.chat(text)
|
||||
|
||||
# After chat is complete, close the connection
|
||||
self.close_after_chat = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue