mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复openai Team订阅无法转发codex的问题
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user