From 5c5548e839549be2e7616e793949905c09fd240c Mon Sep 17 00:00:00 2001 From: shaw Date: Sun, 24 Aug 2025 17:48:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dopenai=20Team=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E6=97=A0=E6=B3=95=E8=BD=AC=E5=8F=91codex=E7=9A=84?= =?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 a18f6d4a..9efb2981 100644 --- a/src/routes/openaiRoutes.js +++ b/src/routes/openaiRoutes.js @@ -149,7 +149,7 @@ router.post('/responses', authenticateApiKey, async (req, res) => { // 覆盖或新增必要头部 headers['authorization'] = `Bearer ${accessToken}` - headers['chatgpt-account-id'] = account.chatgptUserId || account.accountId || accountId + headers['chatgpt-account-id'] = account.accountId || account.chatgptUserId || accountId headers['host'] = 'chatgpt.com' headers['accept'] = isStream ? 'text/event-stream' : 'application/json' headers['content-type'] = 'application/json'