fix: 修复openai Team订阅无法转发codex的问题

This commit is contained in:
shaw
2025-08-24 17:48:09 +08:00
parent 4d7cbe3102
commit 5c5548e839

View File

@@ -149,7 +149,7 @@ router.post('/responses', authenticateApiKey, async (req, res) => {
// 覆盖或新增必要头部 // 覆盖或新增必要头部
headers['authorization'] = `Bearer ${accessToken}` 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['host'] = 'chatgpt.com'
headers['accept'] = isStream ? 'text/event-stream' : 'application/json' headers['accept'] = isStream ? 'text/event-stream' : 'application/json'
headers['content-type'] = 'application/json' headers['content-type'] = 'application/json'