From 4643bd8aad85c29d902e253c299a64fa9b5647ef Mon Sep 17 00:00:00 2001 From: shaw Date: Mon, 11 Aug 2025 14:40:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3Codex=20cli=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=E6=B5=81=E5=BC=8F=E5=93=8D=E5=BA=94=E4=B8=AD=E6=96=AD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/openaiRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/openaiRoutes.js b/src/routes/openaiRoutes.js index 13a2da9d..35ba50a8 100644 --- a/src/routes/openaiRoutes.js +++ b/src/routes/openaiRoutes.js @@ -237,7 +237,7 @@ router.post('/responses', authenticateApiKey, async (req, res) => { const chunkStr = chunk.toString() // 转发数据给客户端 - if (!res.headersSent) { + if (!res.destroyed) { res.write(chunk) }