From 1e41add45908775bd05e4aef0249af212a797e96 Mon Sep 17 00:00:00 2001 From: Pengcheng Liu Date: Mon, 10 Mar 2025 16:29:12 +0800 Subject: [PATCH] Update azure openai api verion. (#1340) This is needed to run o1 and o3 mini model. --- src/app/bots/chatgpt-azure/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/bots/chatgpt-azure/index.ts b/src/app/bots/chatgpt-azure/index.ts index 2491387..193c6a6 100644 --- a/src/app/bots/chatgpt-azure/index.ts +++ b/src/app/bots/chatgpt-azure/index.ts @@ -13,7 +13,7 @@ export class ChatGPTAzureApiBot extends AbstractChatGPTApiBot { } async fetchCompletionApi(messages: ChatMessage[], signal?: AbortSignal) { - const endpoint = `https://${this.config.azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${this.config.azureOpenAIApiDeploymentName}/chat/completions?api-version=2023-03-15-preview` + const endpoint = `https://${this.config.azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${this.config.azureOpenAIApiDeploymentName}/chat/completions?api-version=2025-01-01-preview` return fetch(endpoint, { method: 'POST', signal,