This commit is contained in:
seven 2025-03-28 18:26:16 +08:00
parent ef8b05f8e9
commit 8b1bc7da16

View file

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