mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-13 01:49:47 +08:00
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:
committed by
josc146
parent
c91893ec82
commit
c83e84fc50
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user