作者 lyh

gx

... ... @@ -66,6 +66,7 @@ class ChatLogic extends BaseLogic
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');
header('Connection: keep-alive');
$aiResponse = '';
while (!$stream->eof()) {
$chunk = $stream->read(1024);
if ($chunk !== false) {
... ...