Revert "fix azure endpoint and api version issue"

This reverts commit 92f4fbcef3.
This commit is contained in:
Feng Yue
2025-08-31 01:37:18 +08:00
parent 7c4cbe6ed7
commit 87c2f1dfe2
2 changed files with 2 additions and 2 deletions

View File

@@ -296,7 +296,7 @@ router.post('/responses', authenticateApiKey, async (req, res) => {
deploymentName: account.deploymentName,
apiVersion: account.apiVersion
},
targetUrl: `${account.azureEndpoint}/openai/responses?api-version=${account.apiVersion || '2025-04-01-preview'}`,
targetUrl: `${account.azureEndpoint}/openai/deployments/${account.deploymentName}/responses?api-version=${account.apiVersion || '2024-10-01-preview'}`,
endpoint: 'responses',
isStream: req.body.stream || false
})