作者 lyh

gx

@@ -94,7 +94,7 @@ class ChatLogic extends BaseLogic @@ -94,7 +94,7 @@ class ChatLogic extends BaseLogic
94 if (json_last_error() === JSON_ERROR_NONE) { 94 if (json_last_error() === JSON_ERROR_NONE) {
95 if (isset($jsonData['text'])) { 95 if (isset($jsonData['text'])) {
96 $aiResponse .= $jsonData['text']; 96 $aiResponse .= $jsonData['text'];
97 - echo $gptService->en_sse_data(trim($jsonData['text'])); 97 + echo $gptService->en_sse_data($jsonData['text']);
98 ob_flush(); 98 ob_flush();
99 flush(); 99 flush();
100 } 100 }