Update Azure OpenAI API version version to 2024-02-01

This API version is the replacement for the previous 2023-05-15 GA API release.

Reference:
- https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#latest-ga-api-release
This commit is contained in:
Peter Dave Hello
2024-04-26 06:18:14 +08:00
committed by josc146
parent c91893ec82
commit c83e84fc50
+1 -1
View File
@@ -24,7 +24,7 @@ export async function generateAnswersWithAzureOpenaiApi(port, question, session)
await fetchSSE(
`${config.azureEndpoint.replace(/\/$/, '')}/openai/deployments/${
config.azureDeploymentName
}/chat/completions?api-version=2023-05-15`,
}/chat/completions?api-version=2024-02-01`,
{
method: 'POST',
signal: controller.signal,