fix azure endpoint and api version issue

This commit is contained in:
Feng Yue
2025-08-30 18:55:24 +08:00
parent 2cf2574ebe
commit 92f4fbcef3
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/deployments/${account.deploymentName}/responses?api-version=${account.apiVersion || '2024-10-01-preview'}`,
targetUrl: `${account.azureEndpoint}/openai/responses?api-version=${account.apiVersion || '2025-04-01-preview'}`,
endpoint: 'responses',
isStream: req.body.stream || false
})