switch azure openai api version to stable version (#640)

This commit is contained in:
josc146
2024-03-05 18:50:03 +08:00
parent 985adb9273
commit c4a537ff28
+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-03-15-preview`,
}/chat/completions?api-version=2023-05-15`,
{
method: 'POST',
signal: controller.signal,