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,