🖨️ fix: Use Azure Serverless API Version for Responses API (#8316)

This commit is contained in:
Danny Avila 2025-07-08 21:07:52 -04:00 committed by GitHub
parent 7e37211458
commit 4918899c8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ export function getOpenAIConfig(
};
configOptions.defaultQuery = {
...configOptions.defaultQuery,
'api-version': 'preview',
'api-version': configOptions.defaultQuery?.['api-version'] ?? 'preview',
};
};