mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-03 20:55:01 +08:00
switch azure openai api version to stable version (#640)
This commit is contained in:
@@ -24,7 +24,7 @@ export async function generateAnswersWithAzureOpenaiApi(port, question, session)
|
|||||||
await fetchSSE(
|
await fetchSSE(
|
||||||
`${config.azureEndpoint.replace(/\/$/, '')}/openai/deployments/${
|
`${config.azureEndpoint.replace(/\/$/, '')}/openai/deployments/${
|
||||||
config.azureDeploymentName
|
config.azureDeploymentName
|
||||||
}/chat/completions?api-version=2023-03-15-preview`,
|
}/chat/completions?api-version=2023-05-15`,
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
signal: controller.signal,
|
signal: controller.signal,
|
||||||
|
|||||||
Reference in New Issue
Block a user