This commit is contained in:
seven 2025-03-28 16:44:33 +08:00
parent bbff895fc2
commit 80f24645a9

View file

@ -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