mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 解决Codex cli转发流式响应中断问题
This commit is contained in:
@@ -237,7 +237,7 @@ router.post('/responses', authenticateApiKey, async (req, res) => {
|
||||
const chunkStr = chunk.toString()
|
||||
|
||||
// 转发数据给客户端
|
||||
if (!res.headersSent) {
|
||||
if (!res.destroyed) {
|
||||
res.write(chunk)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user