fix: streaming

This commit is contained in:
cogwheel0
2025-09-01 17:33:44 +05:30
parent 530c0d0efb
commit 856bb8b75a

View File

@@ -1279,7 +1279,11 @@ Future<void> _sendMessageInternal(
// Mirror web client's execute path: listen on provided dynamic channel // Mirror web client's execute path: listen on provided dynamic channel
final channel = payload['channel']; final channel = payload['channel'];
if (channel is String && channel.isNotEmpty) { if (channel is String && channel.isNotEmpty) {
DebugLogger.stream('Socket request:chat:completion channel=$channel'); // Prefer dynamic channel for streaming content; suppress chat-events text to avoid duplicates
suppressSocketContent = true;
if (kSocketVerboseLogging) {
DebugLogger.stream('Socket request:chat:completion channel=$channel');
}
void channelLineHandler(dynamic line) { void channelLineHandler(dynamic line) {
try { try {
if (line is String) { if (line is String) {