合并分支 'lyh-server' 到 'master'
gx 查看合并请求 !1703
正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -66,6 +66,7 @@ class ChatLogic extends BaseLogic | @@ -66,6 +66,7 @@ class ChatLogic extends BaseLogic | ||
| 66 | header('Content-Type: text/event-stream'); | 66 | header('Content-Type: text/event-stream'); |
| 67 | header('Cache-Control: no-cache'); | 67 | header('Cache-Control: no-cache'); |
| 68 | header('Connection: keep-alive'); | 68 | header('Connection: keep-alive'); |
| 69 | + $aiResponse = ''; | ||
| 69 | while (!$stream->eof()) { | 70 | while (!$stream->eof()) { |
| 70 | $chunk = $stream->read(1024); | 71 | $chunk = $stream->read(1024); |
| 71 | if ($chunk !== false) { | 72 | if ($chunk !== false) { |
-
请 注册 或 登录 后发表评论