Skip to content

Commit

Permalink
Update Azure OpenAI API version version to 2024-02-01
Browse files Browse the repository at this point in the history
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
  • Loading branch information
PeterDaveHello committed Apr 27, 2024
1 parent 97fc651 commit 35998fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/apis/azure-openai-api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 35998fb

Please sign in to comment.