Skip to content

Commit 1e41add

Browse files
authored
Update azure openai api verion. (#1340)
This is needed to run o1 and o3 mini model.
1 parent b31739f commit 1e41add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/bots/chatgpt-azure/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class ChatGPTAzureApiBot extends AbstractChatGPTApiBot {
1313
}
1414

1515
async fetchCompletionApi(messages: ChatMessage[], signal?: AbortSignal) {
16-
const endpoint = `https://${this.config.azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${this.config.azureOpenAIApiDeploymentName}/chat/completions?api-version=2023-03-15-preview`
16+
const endpoint = `https://${this.config.azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${this.config.azureOpenAIApiDeploymentName}/chat/completions?api-version=2025-01-01-preview`
1717
return fetch(endpoint, {
1818
method: 'POST',
1919
signal,

0 commit comments

Comments
 (0)